main: Fixed logical error in remote/local check
Matt Bell committed
Nov 13, 2014 at 01:04 UTC
c9737760495c86743eff724c061c00aa13ac4caa
1 file changed
+2
-1
cmd/ipfs2/main.go
+2
-1
@@ -206,7 +206,8 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
206
if err != nil {
207
return nil, err
208
}
209
- remote := !isLocal(req.Command()) && !found || !local
209
+
210
+ remote := !isLocal(req.Command()) && (!found || !local)
211
212
log.Info("Checking if daemon is running...")
213
if remote && daemon.Locked(req.Context().ConfigRoot) {