Fix lint errors
This commit is contained in:
parent
3fb285f7d3
commit
36f3788cb7
|
@ -49,6 +49,7 @@ vet:
|
|||
echo ""; \
|
||||
echo "[LINT] Vet found suspicious constructs. Please check the reported constructs"; \
|
||||
echo "and fix them if necessary before submitting the code for review."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
@git grep -n `echo "log"".Print"` | grep -v 'vendor/' ; if [ $$? -eq 0 ]; then \
|
||||
|
|
|
@ -408,10 +408,10 @@ func TestPathFuncs(t *testing.T) {
|
|||
}
|
||||
|
||||
if empty, err := pathEmpty(dir); err != nil || !empty {
|
||||
t.Errorf("%q is empty and exists. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is empty and exists. empty=%v error=%v", dir, empty, err)
|
||||
}
|
||||
if empty, err := pathEmpty(missingDir); err == nil || empty {
|
||||
t.Errorf("%q is missing. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is missing. empty=%v error=%v", missingDir, empty, err)
|
||||
}
|
||||
|
||||
filename := filepath.Join(dir, "just-some-file")
|
||||
|
@ -422,6 +422,6 @@ func TestPathFuncs(t *testing.T) {
|
|||
f.Close()
|
||||
|
||||
if empty, err := pathEmpty(dir); err != nil || empty {
|
||||
t.Errorf("%q is not empty. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is not empty. empty=%v error=%v", dir, empty, err)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ func TestLinuxRootSecretDir(t *testing.T) {
|
|||
t.Fatalf("secrets dir %q is not a directory and should be", secretsDir)
|
||||
}
|
||||
if err := isMount(secretsDir); err != nil {
|
||||
t.Fatalf("secrets dir %q is not a mount: %v", err)
|
||||
t.Fatalf("secrets dir %q is not a mount: %v", secretsDir, err)
|
||||
}
|
||||
|
||||
// now remove it
|
||||
|
|
Loading…
Reference in New Issue