Skip to content

Commit

Permalink
Tidy up.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Jan 10, 2024
1 parent 63fe7e1 commit 375f9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suave/datastore/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ type IPFS struct {

func (c *IPFS) init() (err error) {
c.once.Do(func() {
var api *rpc.HttpApi
if c.API == nil {
var api *rpc.HttpApi
if api, err = rpc.NewLocalApi(); err == nil {
c.API = api.Block()
}
Expand Down

0 comments on commit 375f9f3

Please sign in to comment.