Skip to content

Commit 7687429

Browse files
committed
fmt
1 parent 275e44d commit 7687429

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/component/exportutil/exportutil.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ QJsonObject ExportUtil::buildExportJson(Contest *contest) {
172172
info = tr("Cannot find valid source file");
173173
break;
174174
case CompileTimeLimitExceeded:
175-
info = tr("Source file: ") + contestant->getSourceFile(j) +
176-
QString(", ") + tr("Compile time limit exceeded");
175+
info = tr("Source file: ") + contestant->getSourceFile(j) + QString(", ") +
176+
tr("Compile time limit exceeded");
177177
break;
178178
case InvalidCompiler:
179179
info = tr("Cannot run given compiler");
180180
break;
181181
case CompileError:
182-
info = tr("Source file: ") + contestant->getSourceFile(j) +
183-
QString(", ") + tr("Compile error");
182+
info = tr("Source file: ") + contestant->getSourceFile(j) + QString(", ") +
183+
tr("Compile error");
184184
break;
185185
default:
186186
break;
@@ -191,8 +191,7 @@ QJsonObject ExportUtil::buildExportJson(Contest *contest) {
191191
tObj["info"] = info;
192192
}
193193

194-
if (contestant->getCheckJudged(j) &&
195-
contestant->getCompileState(j) == CompileError &&
194+
if (contestant->getCheckJudged(j) && contestant->getCompileState(j) == CompileError &&
196195
! contestant->getCompileMessage(j).isEmpty()) {
197196
tObj["compile_message"] = contestant->getCompileMessage(j);
198197
}

0 commit comments

Comments
 (0)