Skip to content

Commit c7878b6

Browse files
committed
False-y params should not be replaced.
1 parent 96eb8b5 commit c7878b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/RenderApp/Controller/Render.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sub parseRequest {
3535
# only supply key-values that are not already provided
3636
# e.g. numCorrect/numIncorrect or restarting an interrupted session
3737
foreach my $key (keys %$claims) {
38-
$params{$key} ||= $claims->{$key};
38+
$params{$key} //= $claims->{$key};
3939
}
4040
# @params{ keys %$claims } = values %$claims;
4141
}

0 commit comments

Comments
 (0)