Skip to content

Commit

Permalink
Fix lint warn
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 9, 2023
1 parent 3d25ad6 commit 5e3ebf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ func (n *IpfsNode) Bootstrap(cfg bootstrap.BootstrapConfig) error {
return ps
}
}
if load, save := cfg.BackupPeers(); load == nil {
save = func(ctx context.Context, peerList []peer.AddrInfo) {
if load, _ := cfg.BackupPeers(); load == nil {
save := func(ctx context.Context, peerList []peer.AddrInfo) {

Check warning on line 172 in core/core.go

View check run for this annotation

Codecov / codecov/patch

core/core.go#L171-L172

Added lines #L171 - L172 were not covered by tests
err := n.saveTempBootstrapPeers(ctx, peerList)
if err != nil {
log.Warnf("saveTempBootstrapPeers failed: %s", err)
Expand Down

0 comments on commit 5e3ebf2

Please sign in to comment.