mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 12:20:03 +08:00
+2 characters for readability
This commit is contained in:

committed by
Juan Batiz-Benet

parent
d2d29a80dc
commit
fee3b0dd31
@ -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 {
|
||||
|
Reference in New Issue
Block a user