1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 21:47:52 +08:00

main: Fixed logical error in remote/local check

This commit is contained in:
Matt Bell
2014-11-13 01:04:21 -08:00
committed by Juan Batiz-Benet
parent 81b3680908
commit c973776049

View File

@ -206,7 +206,8 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
if err != nil {
return nil, err
}
remote := !isLocal(req.Command()) && !found || !local
remote := !isLocal(req.Command()) && (!found || !local)
log.Info("Checking if daemon is running...")
if remote && daemon.Locked(req.Context().ConfigRoot) {