fix variable shadowing bug where provided RootCA would always be a nil byte slice

pull/6/head
Mike Danese 2015-06-25 11:40:48 -07:00
parent 1904d4e1ce
commit fbd03e5b90
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ func (s *CMServer) Run(_ []string) error {
var rootCA []byte
if s.RootCAFile != "" {
rootCA, err := ioutil.ReadFile(s.RootCAFile)
rootCA, err = ioutil.ReadFile(s.RootCAFile)
if err != nil {
return fmt.Errorf("error reading root-ca-file at %s: %v", s.RootCAFile, err)
}