Skip to content

Commit 86a2e16

Browse files
committed
fixed boolean logic
1 parent 396585a commit 86a2e16

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

solid/lib/JtiReplayDetector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ public function __construct(private DateInterval $interval, private IDBConnectio
2323
public function detect(string $jti, string $targetUri): bool
2424
{
2525
// @TODO: $this->rotateBuckets();
26-
2726
$has = $this->has($jti, $targetUri);
2827

29-
$detected = $has === false;
30-
3128
if ($has === false) {
3229
$this->store($jti, $targetUri);
3330
}
3431

35-
return $detected;
32+
return $has;
3633
}
3734

3835
////////////////////////////// UTILITY METHODS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\

0 commit comments

Comments
 (0)