removing bad options guard

This commit is contained in:
zricethezav committed 2020-06-03 08:51:11 -04:00
1 parent bdc688dd53
commit 2232dc191c
1 file changed
-3
-3
View File
@@ -112,9 +112,6 @@ func (opts Options) Guard() error {
if !oneOrNoneSet(opts.AccessToken, opts.Password) {
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
}