Skip to content

Commit

Permalink
fix bug and warning in result log key
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Mar 4, 2021
1 parent c3a0f60 commit 40d6664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Utils/ResultLock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class ResultLock {
///
/// Any threads that later approach block() will not block unless close() is called.
public func open(key: ResultLockKey) {
let canOpen = (key == nil) || (key == self.key)
let canOpen = (self.key == nil) || (key == self.key)
guard canOpen else { return }
open()
}
Expand Down

0 comments on commit 40d6664

Please sign in to comment.