Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Sep 8, 2018
1 parent dca2e6e commit 871df65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function wait($unwrap = true)
$this->promise->wait(false);

if ($unwrap) {
if ($this->getState() == self::REJECTED) {
if (self::REJECTED == $this->getState()) {
throw $this->exception;
}

Expand Down

0 comments on commit 871df65

Please sign in to comment.