4
0
Эх сурвалжийг харах

removing bad options guard

zricethezav 5 жил өмнө
parent
commit
2232dc191c

+ 0 - 3
options/options.go

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