Commit fee3b0dd authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

+2 characters for readability

parent d2d29a80
......@@ -24,12 +24,12 @@ var daemonCmd = &cmds.Command{
func daemonFunc(res cmds.Response, req cmds.Request) {
ctx := req.Context()
lk, err := daemon.Lock(ctx.ConfigRoot)
lock, err := daemon.Lock(ctx.ConfigRoot)
if err != nil {
res.SetError(fmt.Errorf("Couldn't obtain lock. Is another daemon already running?"), cmds.ErrNormal)
return
}
defer lk.Close()
defer lock.Close()
node, err := core.NewIpfsNode(ctx.Config, true)
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment