1
0
Fork 0

Removed excessive vars from SplitNetworkAddress().

This commit is contained in:
Alexander Andreev 2022-02-07 22:08:02 +04:00
parent ed3b0080a3
commit 7ac1c2ccb9
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
1 changed files with 2 additions and 3 deletions

View File

@ -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]
}