git.sh: remove meaningless check

in the function that immediately follows, it
starts two for loops that check every item in
that directory, using the asterisk wildcard.

if the directory does not exist, then the for
loop will simply break on first pass.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-05-22 15:53:37 +01:00
parent c148fa53df
commit dae10dd482
-2
View File
@@ -128,8 +128,6 @@ patch_submodules()
while read -r modsrcdir; do
modpatchdir="$moddir/${modsrcdir##*/}/patches"
[ -d "$modpatchdir" ] || continue
git_am_patches "$tmpgit/$modsrcdir" "$modpatchdir"
done < "$tmpdir/modules"
}