Parcourir la source

removing bad options guard

zricethezav il y a 6 ans
Parent
commit
2232dc191c
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      options/options.go

+ 0 - 3
options/options.go

@@ -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
 }