Skip to content

Commit

Permalink
Merge pull request #2515 from gemesa/clang-format-x-semicolon
Browse files Browse the repository at this point in the history
clang_format_all.sh: remove unnecessary semicolons
  • Loading branch information
Mister-X- committed Mar 13, 2023
2 parents 1f3e520 + b02e980 commit 908dbf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/clang_format_all.sh
Expand Up @@ -22,12 +22,12 @@ valid_clang_format() {
# $ clang-format-12 --version
# clang-format version 12.0.1 (https://github.com/llvm/llvm-project.git fed41342a82f5a3a9201819a82bf7a48313e296b)
if $CLANG_FORMAT --version | grep -q "version $1"; then
echo "Located $CLANG_FORMAT";
return 0;
echo "Located $CLANG_FORMAT"
return 0
fi
fi

return 1;
return 1
}

# Format all source code
Expand All @@ -44,7 +44,7 @@ format_code() {

if test ! -e configure.ac; then
echo "Must be at the root of the entire project."
exit 1;
exit 1
fi;

for clang_version in "${CLANG_VERSION[@]}"; do
Expand Down Expand Up @@ -78,4 +78,4 @@ echo "Aircrack-ng requires a very specific clang-format version to ensure there
echo "any variance between versions that can happen. You can install it as"
echo -n "'clang-format-"; IFS='/';echo -n "${CLANG_VERSION[*]}";IFS=$' \t\n'; echo "' so that it doesn't interfere with any other"
echo "versions you might have installed, and this script will find it there"
exit 1;
exit 1

0 comments on commit 908dbf6

Please sign in to comment.