Skip to content
Snippets Groups Projects
Commit fac20440 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix travis formatting script

parent dde58439
No related branches found
No related tags found
1 merge request!9Fix dependencies
......@@ -16,7 +16,7 @@ cd ${SOURCE_DIR}
# Check C and C++ code with clang-format
echo "Checking formatting for commit range: ${COMMIT_RANGE}"
DIFF="$(./scripts/developer/git/git-clang-format --diff ${COMMIT_RANGE})"
if [ -n "${DIFF}" ]
if [ -n "${DIFF}" ] && [ "${DIFF}" != "no modified files to format" ]
then
echo "clang-format:"
echo " Code format checks failed."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment