Skip to content

Commit f98e2c7

Browse files
committed
Fix lint
1 parent 1c48212 commit f98e2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/attribute/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func checkAttrCommand(gitRepo *git.Repository, treeish string, filenames, attrib
2828
isBare, _ := strconv.ParseBool(res)
2929
// bare repository must have a treeish
3030
if isBare && treeish == "" {
31-
return nil, nil, nil, fmt.Errorf("bare repository must have a treeish")
31+
return nil, nil, nil, errors.New("bare repository must have a treeish")
3232
}
3333

3434
cmd := git.NewCommand("check-attr", "-z")

0 commit comments

Comments
 (0)