mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
removing bad options guard
This commit is contained in:
1 parent
bdc688dd53
commit
2232dc191c
1 file changed
-3
@@ -112,9 +112,6 @@ func (opts Options) Guard() error {
|
|||||||
if !oneOrNoneSet(opts.AccessToken, opts.Password) {
|
if !oneOrNoneSet(opts.AccessToken, opts.Password) {
|
||||||
log.Warn("both access-token and password are set. Only password will be attempted")
|
log.Warn("both access-token and password are set. Only password will be attempted")
|
||||||
}
|
}
|
||||||
if !oneOrNoneSet(opts.FilesAtCommit, opts.Commit, opts.CommitTo, opts.CommitFrom) {
|
|
||||||
return fmt.Errorf("invalid commit options set")
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user