Skip to content

Commit

Permalink
cmds: go fmt and minor cleanup
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Aug 22, 2018
1 parent b0c480a commit f0886f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/commands/name/ipns.go
Expand Up @@ -2,6 +2,7 @@ package name

import (
"errors"
"fmt"
"io"
"strings"
"time"
Expand All @@ -16,7 +17,6 @@ import (
"gx/ipfs/QmSP88ryZkHSRn1fnngAaV2Vcn63WUJzAavnRM9CVdU1Ky/go-ipfs-cmdkit"
offline "gx/ipfs/Qmd45r5jHr1PKMNQqifnbZy1ZQwHdtXUDJFamUEvUJE544/go-ipfs-routing/offline"
path "gx/ipfs/QmdMPBephdLYNESkruDX2hcDTgFYhoCt4LimWhgnomSdV2/go-path"
"fmt"
)

var log = logging.Logger("core/commands/ipns")
Expand Down Expand Up @@ -162,7 +162,7 @@ Resolve the value of a dnslink:
if !ok {
return e.TypeErr(output, v)
}
_, err := fmt.Fprintln(w, []byte(output.Path.String()))
_, err := fmt.Fprintln(w, output.Path)
return err
}),
},
Expand Down
4 changes: 2 additions & 2 deletions core/commands/name/ipnsps.go
Expand Up @@ -2,6 +2,7 @@ package name

import (
"errors"
"fmt"
"io"
"strings"

Expand All @@ -12,7 +13,6 @@ import (
"gx/ipfs/QmQsErDt8Qgw1XrsXf2BpEzDgGWtB1YLsTAARBup5b6B9W/go-libp2p-peer"
"gx/ipfs/QmSP88ryZkHSRn1fnngAaV2Vcn63WUJzAavnRM9CVdU1Ky/go-ipfs-cmdkit"
"gx/ipfs/QmdHb9aBELnQKTVhvvA3hsQbRgUAwsWUzBP2vZ6Y5FBYvE/go-libp2p-record"
"fmt"
)

type ipnsPubsubState struct {
Expand Down Expand Up @@ -72,7 +72,7 @@ var ipnspsStateCmd = &cmds.Command{
state = "disabled"
}

_, err := fmt.Fprintln(w, []byte(state))
_, err := fmt.Fprintln(w, state)
return err
}),
},
Expand Down

0 comments on commit f0886f0

Please sign in to comment.