File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/com/nmerrill/kothcomm/communication Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,17 +68,16 @@ private void saveSubmission(String html){
68
68
return ;
69
69
}
70
70
String [] parts = header .split ("," );
71
- String name = parts [0 ];
72
71
String language = parts .length < 2 ? "" : parts [1 ];
73
72
List <Element > codeBlocks = document .select ("pre>code" );
74
73
if (codeBlocks .size () == 0 ){
75
74
System .out .println ("No code blocks in submission:" +header );
76
75
return ;
77
76
}
78
77
79
- Language loader = languageLoader .byName (name );
78
+ Language loader = languageLoader .byName (language );
80
79
if (loader == null ){
81
- System .out .println ("Cannot find a language with the name " +name );
80
+ System .out .println ("Cannot find a language with the name " +language );
82
81
}
83
82
File directory = languageLoader .getDirectory (loader );
84
83
You can’t perform that action at this time.
0 commit comments