Skip to content

Commit b4205f0

Browse files
author
Ben Lerner
committed
don't assume there's a line number present
1 parent a096d57 commit b4205f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/graders/sandbox_grader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def postprocess_orca_response(grade, response)
147147
submission: sub,
148148
title: t['name'] || t['comment'] || '',
149149
filename: Upload.upload_path_for(t['filename'] || sub.upload.extracted_path.to_s),
150-
line: t['line'].to_i || i,
150+
line: t['line']&.to_i || (i + 1),
151151
grade: grade,
152152
user: nil,
153153
label: 'general',

0 commit comments

Comments
 (0)