mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
Removing other unnecessary references to opts.Commit
This commit is contained in:
1 parent
7676690697
commit
d4be9602e3
1 file changed
-7
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user