diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2023-05-03 13:17:36 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2023-05-03 16:41:55 +0200 |
| commit | 181d7cb4e21c9b6f265bac0480771a8a6eda3198 (patch) | |
| tree | 9546ebfec03442a3c2cdc4cf9cc8425048783d3d /ios/Operations | |
| parent | c9c9c44e515b89d80292429a8fb85b9bc95a4174 (diff) | |
| download | mullvadvpn-181d7cb4e21c9b6f265bac0480771a8a6eda3198.tar.xz mullvadvpn-181d7cb4e21c9b6f265bac0480771a8a6eda3198.zip | |
AsyncOperation: remove finish() call as it's guaranteed that execution block should exist
Diffstat (limited to 'ios/Operations')
| -rw-r--r-- | ios/Operations/AsyncBlockOperation.swift | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ios/Operations/AsyncBlockOperation.swift b/ios/Operations/AsyncBlockOperation.swift index c8889bc9b5..91ba6c5fd1 100644 --- a/ios/Operations/AsyncBlockOperation.swift +++ b/ios/Operations/AsyncBlockOperation.swift @@ -41,11 +41,7 @@ public class AsyncBlockOperation: AsyncOperation { let block = executionBlock executionBlock = nil - if let block = block { - block(self) - } else { - finish() - } + block?(self) } override public func operationDidCancel() { |
