Browse Source

Correct code style

master
Menci 7 years ago committed by GitHub
parent
commit
45684b068d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/problem.js

2
modules/problem.js

@ -465,7 +465,7 @@ app.post('/problem/:id/import', async (req, res) => {
problem.file_io = json.obj.file_io; problem.file_io = json.obj.file_io;
problem.file_io_input_name = json.obj.file_io_input_name; problem.file_io_input_name = json.obj.file_io_input_name;
problem.file_io_output_name = json.obj.file_io_output_name; problem.file_io_output_name = json.obj.file_io_output_name;
if(json.obj.type) problem.type = json.obj.type; if (json.obj.type) problem.type = json.obj.type;
let validateMsg = await problem.validate(); let validateMsg = await problem.validate();
if (validateMsg) throw new ErrorMessage('无效的题目数据配置。', null, validateMsg); if (validateMsg) throw new ErrorMessage('无效的题目数据配置。', null, validateMsg);

Loading…
Cancel
Save