From 1fb00e8045b4e3f5466c0ea9b829e9865008c09b Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Thu, 27 Jul 2017 23:51:07 +0200 Subject: [PATCH] Fixed shadowing bug --- src/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.go b/src/config.go index 9751a18..72a604f 100644 --- a/src/config.go +++ b/src/config.go @@ -153,7 +153,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { return &IPCError{Code: ipcErrorInvalidValue} } device.mutex.RLock() - peer, _ := device.peers[pubKey] + peer, _ = device.peers[pubKey] device.mutex.RUnlock() if peer == nil { peer = device.NewPeer(pubKey)