Skip to content

Commit

Permalink
fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Feb 8, 2024
1 parent 5cb5b15 commit 5b2f5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ func isBinaryLine(latestState ParseState, line []byte) bool {

// Get the b/ file path. Ignoring the edge case of files having `and /b` in the name for simplicity.
func pathFromBinaryLine(line []byte) (string, bool) {
if bytes.Index(line, []byte("and /dev/null")) != -1 {
if bytes.Contains(line, []byte("and /dev/null")) {
return "", true
}

Expand Down

0 comments on commit 5b2f5bd

Please sign in to comment.