diff --git a/hack/license/gen/main.go b/hack/license/gen/main.go index 6ae6618718..ecb4dcc3ce 100644 --- a/hack/license/gen/main.go +++ b/hack/license/gen/main.go @@ -231,7 +231,7 @@ func isSymlink(path string) (bool, error) { if err != nil { return false, err } - return lst.Mode()&os.ModeSymlink != 0, nil + return lst.Mode()&os.ModeSymlink == os.ModeSymlink, nil } func readAndRewrite(path string) error {