Description:
modernized from == nil should be changed to nil?
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r575:7190ed55d920 - - 1 file changed: 2 inserted, 2 deleted
@@ -1,11 +1,11 | |||||
|
1 |
|
1 | ||
|
2 |
- - if submission |
|
2 | + - if submission.nil? |
|
3 | = "-" |
|
3 | = "-" |
|
4 | - else |
|
4 | - else |
|
5 |
- - if submission.graded_at |
|
5 | + - if submission.graded_at.nil? |
|
6 | =t 'main.submitted_at' |
|
6 | =t 'main.submitted_at' |
|
7 | = format_short_time(submission.submitted_at.localtime) |
|
7 | = format_short_time(submission.submitted_at.localtime) |
|
8 | - else |
|
8 | - else |
|
9 | = t 'main.graded_at' |
|
9 | = t 'main.graded_at' |
|
10 | = "#{format_short_time(submission.graded_at.localtime)}, " |
|
10 | = "#{format_short_time(submission.graded_at.localtime)}, " |
|
11 | - if GraderConfiguration['ui.show_score'] |
|
11 | - if GraderConfiguration['ui.show_score'] |
You need to be logged in to leave comments.
Login now