config: fix linter error (gofmt -s)

This commit is contained in:
Olaoluwa Osuntokun 2018-03-23 19:26:43 -07:00
parent c653b62832
commit 18e6705d97
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -873,7 +873,7 @@ func parseRPCParams(cConfig *chainConfig, nodeConfig interface{}, net chainCode,
// If only ONE of RPCUser or RPCPass is set, we assume the
// user did that unintentionally.
if conf.RPCUser != "" || conf.RPCPass != "" {
return fmt.Errorf("please set both or neither of " +
return fmt.Errorf("please set both or neither of "+
"%[1]v.rpcuser, %[1]v.rpcpass", daemonName)
}
@ -902,8 +902,8 @@ func parseRPCParams(cConfig *chainConfig, nodeConfig interface{}, net chainCode,
// If only one or two of the parameters are set, we assume the
// user did that unintentionally.
if conf.RPCUser != "" || conf.RPCPass != "" || conf.ZMQPath != "" {
return fmt.Errorf("please set all or none of " +
"%[1]v.rpcuser, %[1]v.rpcpass, " +
return fmt.Errorf("please set all or none of "+
"%[1]v.rpcuser, %[1]v.rpcpass, "+
"and %[1]v.zmqpath", daemonName)
}