Skip to content

Commit

Permalink
Fix cleanup when storing a validation result fails
Browse files Browse the repository at this point in the history
  • Loading branch information
berndoberknapp committed Oct 30, 2024
1 parent 9a90f5b commit ef1ac61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Reportfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function store($report, $file, $filename, $source, $result, $userI
$storedReport->delete();
}
if ($storedResult !== null) {
$storedResult->deleteResultfile();
$storedResult->delete();
}
} catch (\Exception $de) {
report($de);
Expand Down

0 comments on commit ef1ac61

Please sign in to comment.