Skip to content

Commit 983cfa7

Browse files
authored
Merge pull request #2806 from drgrice1/bugfix/no-reduced-cred-unusable
Fix an error that makes the `NoReducedCred` achievement item unusable.
2 parents 94819a3 + 24ec4c9 commit 983cfa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/WeBWorK/AchievementItems/NoReducedCred.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ sub new ($class) {
1919
}
2020

2121
sub can_use ($self, $set, $records) {
22-
return 0
23-
unless $set->assignment_type eq 'default'
22+
return
23+
$set->assignment_type eq 'default'
2424
&& $set->enable_reduced_scoring
2525
&& $set->reduced_scoring_date
2626
&& $set->reduced_scoring_date < $set->due_date

0 commit comments

Comments
 (0)