From 45684b068de629fd59ed88d9ab5d082d75451c99 Mon Sep 17 00:00:00 2001 From: Menci Date: Fri, 16 Feb 2018 13:55:18 +0800 Subject: [PATCH] Correct code style --- modules/problem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/problem.js b/modules/problem.js index 05e0b38..fea51a9 100644 --- a/modules/problem.js +++ b/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_input_name = json.obj.file_io_input_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(); if (validateMsg) throw new ErrorMessage('无效的题目数据配置。', null, validateMsg);