Removing other unnecessary references to opts.Commit

This commit is contained in:
Cassio Berra committed 2019-05-18 01:24:18 +00:00
1 parent 7676690697
commit d4be9602e3
1 file changed
-7
-7
View File
@@ -209,13 +209,6 @@ func (repoInfo *RepoInfo) audit() ([]Leak, error) {
mutex.Lock()
leaks = append(leaksFromSingleCommit, leaks...)
mutex.Unlock()
if opts.Commit == c.Hash.String() {
return storer.ErrStop
}
return nil
}
if opts.Commit != "" && opts.Commit != c.Hash.String() {
return nil
}