Skip to content

Commit

Permalink
perltidy
Browse files Browse the repository at this point in the history
  • Loading branch information
drdrew42 committed Nov 20, 2023
1 parent 6679888 commit 1ac54bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/WeBWorK/AchievementEvaluator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ sub checkForAchievements ($problem_in, $pg, $c, %options) {
setID => $set_id,
nextLevelPoints => $nextLevelPoints || 0,
pointsEarned => $achievementPoints,
remote_host => $c->tx->remote_host || "UNKNOWN",
remote_host => $c->tx->remote_host || "UNKNOWN",
} ]
) if ($achievement->email_template);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ sub save_as_handler ($c) {
unless $c->stash->{achievementNotification};

# Rescue the user in case they forgot to end the file name with .ep
$new_file_name =~ s/\.ep$//; # remove it if it is there
$new_file_name .= '.ep'; # put it there
$new_file_name =~ s/\.ep$//; # remove it if it is there
$new_file_name .= '.ep'; # put it there

# Construct the output file path
my $outputFilePath = $c->ce->{courseDirs}{achievements} . '/' . $new_file_name;
Expand Down

0 comments on commit 1ac54bf

Please sign in to comment.