summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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");
}