Remove extra error mapping (#2050)

This commit is contained in:
Maycon Santos 2024-05-24 14:46:11 +02:00 committed by GitHub
parent 41fe9f84ec
commit 7a1c96ebf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1858,7 +1858,7 @@ func (am *DefaultAccountManager) SyncAndMarkPeer(peerPubKey string, realIP net.I
peer, netMap, err := am.SyncPeer(PeerSync{WireGuardPubKey: peerPubKey}, account) peer, netMap, err := am.SyncPeer(PeerSync{WireGuardPubKey: peerPubKey}, account)
if err != nil { if err != nil {
return nil, nil, mapError(err) return nil, nil, err
} }
err = am.MarkPeerConnected(peerPubKey, true, realIP, account) err = am.MarkPeerConnected(peerPubKey, true, realIP, account)