Skip to content

Commit

Permalink
Simplify code in Executable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Nov 23, 2023
1 parent f866ca5 commit e53cd48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webapp/src/Entity/Executable.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ public function getZipfileContent(string $tempdir): string
*/
public function checkUsed(array $configScripts): bool
{
foreach ($configScripts as $config_script) {
if ($this->execid === $config_script) {
return true;
}
if (in_array($this->execid, $configScripts, true)) {
return true;
}
if (count($this->problems_compare) || count($this->problems_run)) {
return true;
Expand Down

0 comments on commit e53cd48

Please sign in to comment.