summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-01 08:34:09 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-30 09:51:49 +0200
commit970c3cb692eef2a25a08573cd89f143040006e7f (patch)
treed0b0dc279151ccd913e5f191180de94d1a5575e6 /mullvad-daemon/src
parent64e87a363ce1c404a587b3d1c03fa64ad6073ec5 (diff)
downloadmullvadvpn-970c3cb692eef2a25a08573cd89f143040006e7f.tar.xz
mullvadvpn-970c3cb692eef2a25a08573cd89f143040006e7f.zip
Preserve returned error by add access method function
Diffstat (limited to 'mullvad-daemon/src')
-rw-r--r--mullvad-daemon/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs
index f371b9a91a..e53458071d 100644
--- a/mullvad-daemon/src/lib.rs
+++ b/mullvad-daemon/src/lib.rs
@@ -3019,10 +3019,7 @@ impl Daemon {
enabled: bool,
access_method: AccessMethod,
) {
- let result = self
- .add_access_method(name, enabled, access_method)
- .await
- .map_err(Error::AccessMethodError);
+ let result = self.add_access_method(name, enabled, access_method).await;
Self::oneshot_send(tx, result, "add_api_access_method response");
}