Merge pull request #1751 from kinvolk/krnowak/lint

Lint fixes
This commit is contained in:
Paul Bellamy
2016-08-09 09:45:10 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ func (pw *probeWorker) loop() {
return err
})
if err != nil {
log.Errorf("Error recieving message: %v", err)
log.Errorf("Error receiving message: %v", err)
continue
}
+2 -2
View File
@@ -40,11 +40,11 @@ function spell_check {
filename="$1"
local lint_result=0
# we don't want to spell check tar balls or binaries
# we don't want to spell check tar balls, binaries, Makefile and json files
if file "$filename" | grep executable >/dev/null 2>&1; then
return $lint_result
fi
if [[ $filename == *".tar" || $filename == *".gz" ]]; then
if [[ $filename == *".tar" || $filename == *".gz" || $filename == *".json" || $(basename "$filename") == "Makefile" ]]; then
return $lint_result
fi