diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-27 23:51:07 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-27 23:51:07 +0200 |
commit | 1fb00e8045b4e3f5466c0ea9b829e9865008c09b (patch) | |
tree | 87ced3b1d8f314cc4b4610f4c817695873456e27 | |
parent | 92135131a7e87b9e078d32f4128bef1698132936 (diff) |
Fixed shadowing bug
-rw-r--r-- | src/config.go | 2 |
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) |