summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-27 23:51:07 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-27 23:51:07 +0200
commit1fb00e8045b4e3f5466c0ea9b829e9865008c09b (patch)
tree87ced3b1d8f314cc4b4610f4c817695873456e27
parent92135131a7e87b9e078d32f4128bef1698132936 (diff)
Fixed shadowing bug
-rw-r--r--src/config.go2
1 files changed, 1 insertions, 1 deletions
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)