Skip to content

Commit a4bc833

Browse files
committed
fix(codaveri): align variable name with other package services
1 parent d08b769 commit a4bc833

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/services/course/assessment/question/programming_codaveri/java/java_package_service.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ def extract_supporting_tests_files
104104
end
105105

106106
def extract_supporting_file(filename, content)
107-
supporting_solution_object = default_codaveri_data_file_template
107+
supporting_file_object = default_codaveri_data_file_template
108108

109-
supporting_solution_object[:type] = 'internal' # 'external' s3 upload not yet implemented by codaveri
110-
supporting_solution_object[:path] = filename.to_s
109+
supporting_file_object[:type] = 'internal' # 'external' s3 upload not yet implemented by codaveri
110+
supporting_file_object[:path] = filename.to_s
111111
if content.force_encoding('UTF-8').valid_encoding?
112112
supporting_file_object[:content] = content
113113
supporting_file_object[:encoding] = 'utf8'
@@ -116,7 +116,7 @@ def extract_supporting_file(filename, content)
116116
supporting_file_object[:encoding] = 'base64'
117117
end
118118

119-
@data_files.append(supporting_solution_object)
119+
@data_files.append(supporting_file_object)
120120
end
121121

122122
def extract_template

0 commit comments

Comments
 (0)