mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +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()
|
mutex.Lock()
|
||||||
leaks = append(leaksFromSingleCommit, leaks...)
|
leaks = append(leaksFromSingleCommit, leaks...)
|
||||||
mutex.Unlock()
|
mutex.Unlock()
|
||||||
if opts.Commit == c.Hash.String() {
|
|
||||||
return storer.ErrStop
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if opts.Commit != "" && opts.Commit != c.Hash.String() {
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user