Skip to content

Commit

Permalink
Fix isSymlink function to correctly check for symbolic links (#2292)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak authored Jan 11, 2024
1 parent f943916 commit 9be659b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/license/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9be659b

Please sign in to comment.