Skip to content

Commit 7c65a3b

Browse files
authored
Merge pull request #209 from Laith98Dev/master
Remove extra semicolon
2 parents 2241e70 + 20109fa commit 7c65a3b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

await-generator/src/SOFe/AwaitGenerator/Await.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private static function raceSemaphore(array $inputs) : array{
257257
* @return Generator<mixed, Await::RESOLVE|null|Await::RESOLVE_MULTI|Await::REJECT|Await::ONCE|Await::ALL|Await::RACE|Generator, mixed, array{K, U}>
258258
*/
259259
public static function safeRace(array $generators) : Generator{
260-
$generators = self::raceSemaphore($generators);;
260+
$generators = self::raceSemaphore($generators);
261261

262262
$firstException = null;
263263
$which = null;

tests/SOFe/AwaitGenerator/AwaitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public function testGeneratorAllResolve() : void{
742742
public function testGeneratorAllEmpty() : void{
743743
self::assertImmediateResolve(function() : Generator{
744744
return yield from Await::all([]);
745-
}, []);;
745+
}, []);
746746
}
747747

748748
public function testGeneratorRaceResolve() : void{

tests/SOFe/AwaitGenerator/MutexTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testMutualExclusion() : void{
117117
yield from $mutex->runClosure(function() use(&$eventCounter, $mutex, $clock) : Generator{
118118
self::assertSame(5, $eventCounter++, "mutex should start next task immediately");
119119
self::assertSame(2, $clock->currentTick(), "mutex should start next task immediately");
120-
self::assertFalse($mutex->isIdle(), "mutex should not be idle when lock is acquired concurrently");;
120+
self::assertFalse($mutex->isIdle(), "mutex should not be idle when lock is acquired concurrently");
121121

122122
yield from $clock->sleepUntil(4);
123123

@@ -135,7 +135,7 @@ public function testMutualExclusion() : void{
135135
$clock->nextTick(2);
136136

137137
self::assertSame(6, $eventCounter++, "nextTick should resume coroutine");
138-
self::assertFalse($mutex->isIdle(), "mutex should not be idle when lock is acquired concurrently");;
138+
self::assertFalse($mutex->isIdle(), "mutex should not be idle when lock is acquired concurrently");
139139

140140
$clock->nextTick(3);
141141

@@ -145,7 +145,7 @@ public function testMutualExclusion() : void{
145145
$clock->nextTick(4);
146146

147147
self::assertSame(9, $eventCounter++, "nextTick should resume coroutine");
148-
self::assertTrue($mutex->isIdle(), "mutex should be idle when both locks are released");;
148+
self::assertTrue($mutex->isIdle(), "mutex should be idle when both locks are released");
149149
}
150150

151151
public function testSupportException() : void{

0 commit comments

Comments
 (0)