Skip to content

Commit

Permalink
Combine 2 statements into one, eliminating repetition
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Aug 7, 2023
1 parent c1cfdff commit 5badf80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Workflow/Config/XML.pm
Expand Up @@ -63,8 +63,7 @@ sub parse {
catch ($error) {
# If processing multiple config files, this makes it much easier
# to find a problem.
$log->error("Processing $file_name: ", $error);
croak "Processing $file_name: $error";
croak $log->error("Processing $file_name: ", $error);
}
$log->info("Parsed XML '$file_name' ok");

Expand Down

0 comments on commit 5badf80

Please sign in to comment.