Skip to content

Commit

Permalink
fix: don't initialize slice
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Aug 31, 2022
1 parent 9ca07e5 commit ad5da23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (conf *ServerConf) DecodePublicKeys() map[string][]verification.Verificatio
log.Info().Msgf("Could not initialize %d. publicKey for host %s: %v", i, host, err)
} else {
if ret[host] == nil {
ret[host] = make([]verification.VerificationKey, len(configuredPubkeys))
ret[host] = make([]verification.VerificationKey, 0, len(configuredPubkeys))
}
ret[host] = append(ret[host], publicKey)
}
Expand Down

0 comments on commit ad5da23

Please sign in to comment.