Removed excessive vars from SplitNetworkAddress().
This commit is contained in:
parent
ed3b0080a3
commit
7ac1c2ccb9
@ -51,8 +51,7 @@ func LoadConfiguration(path string) (*Configuration, error) {
|
||||
// SplitNetworkAddress splits ListenOn option and returns as two strings
|
||||
// network type (e.g. tcp, unix, udp) and address:port or /path/to/prog.socket
|
||||
// to listen on.
|
||||
func (c *Configuration) SplitNetworkAddress() (n string, a string) {
|
||||
func (c *Configuration) SplitNetworkAddress() (string, string) {
|
||||
s := strings.Split(c.ListenOn, " ")
|
||||
n, a = s[0], s[1]
|
||||
return n, a
|
||||
return s[0], s[1]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user