Skip to content

Commit 3c8c495

Browse files
committed
fix compile error
1 parent f354a82 commit 3c8c495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func init() {
7373
func Fsck(repoPath string, timeout time.Duration, args ...string) error {
7474
// Make sure timeout makes sense.
7575
if timeout <= 0 {
76-
timeout == -1
76+
timeout = -1
7777
}
7878
_, err := NewCommand("fsck").AddArguments(args...).RunInDirTimeout(timeout, repoPath)
7979
return err

0 commit comments

Comments
 (0)