Merge pull request #1500 from dexidp/sr/fix-some-lint-issues

*: fix some lint issues
This commit is contained in:
Stephan Renatus
2019-07-30 11:41:27 +02:00
committed by GitHub
13 changed files with 12 additions and 60 deletions

View File

@@ -116,7 +116,7 @@ func serve(cmd *cobra.Command, args []string) error {
if err != nil {
return fmt.Errorf("invalid config: reading from client CA file: %v", err)
}
if cPool.AppendCertsFromPEM(clientCert) != true {
if !cPool.AppendCertsFromPEM(clientCert) {
return errors.New("invalid config: failed to parse client CA")
}