Skip to content

Commit

Permalink
Removed nats RootCAs redundant type conversion of rootPEM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marmotini committed Oct 20, 2017
1 parent 77556b2 commit f1bbc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func RootCAs(file ...string) Option {
if err != nil || rootPEM == nil {
return fmt.Errorf("nats: error loading or parsing rootCA file: %v", err)
}
ok := pool.AppendCertsFromPEM([]byte(rootPEM))
ok := pool.AppendCertsFromPEM(rootPEM)
if !ok {
return fmt.Errorf("nats: failed to parse root certificate from %q", f)
}
Expand Down

0 comments on commit f1bbc81

Please sign in to comment.