Skip to content

Commit

Permalink
incusd/db: Fix error handling in CreateNetworkPeer
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jan 29, 2024
1 parent 85d8a0f commit bfdd692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/db/network_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *ClusterTx) CreateNetworkPeer(ctx context.Context, networkID int64, info
}
}

return localPeerID, targetPeerNetworkID > -1, err
return localPeerID, targetPeerNetworkID > -1, nil
}

// networkPeerConfigAdd inserts Network peer config keys.
Expand Down

0 comments on commit bfdd692

Please sign in to comment.