Fixed shadowing bug
This commit is contained in:
		
							parent
							
								
									92135131a7
								
							
						
					
					
						commit
						1fb00e8045
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue