Skip to content

Commit

Permalink
chore: delete unnecessary comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
gvilaseca-at-wiris committed Mar 28, 2024
1 parent 8ed0d96 commit aa09168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion step.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function is_answer_cached(string $answer): bool {
$cachedresponses = $this->get_var('_response_hash') ?? '';
$responsehash = md5($answer);

return strpos($cachedresponses, $responsehash) !== false || strpos($cachedresponses, $responsehash) == 0;
return strpos($cachedresponses, $responsehash) !== false;
}

private function trim_name(string $name) {
Expand Down

0 comments on commit aa09168

Please sign in to comment.