Skip to content

Commit 48acf9e

Browse files
minor symfony#28460 Think positive (umpirsky)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes symfony#28460). Discussion ---------- Think positive | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT No need to invert condition. Commits ------- 0b43738 Think positive
2 parents e597dba + 0b43738 commit 48acf9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Lock/Lock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public function __destruct()
6969
public function acquire($blocking = false)
7070
{
7171
try {
72-
if (!$blocking) {
73-
$this->store->save($this->key);
74-
} else {
72+
if ($blocking) {
7573
$this->store->waitAndSave($this->key);
74+
} else {
75+
$this->store->save($this->key);
7676
}
7777

7878
$this->dirty = true;

0 commit comments

Comments
 (0)