Skip to content

Commit 2cdf670

Browse files
committed
fix logical issue
1 parent 2bc2792 commit 2cdf670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utilities/if_not_already.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class IfNotAlreadyAsync<T> {
3131
if (!_locked) {
3232
_locked = true;
3333
try {
34-
if (_function == null) {
35-
await _function!();
34+
if (_function != null) {
35+
await _function();
3636
} else {
3737
await _functionWithArgs!(args);
3838
}

0 commit comments

Comments
 (0)