🎨 Clean code https://github.com/siyuan-note/siyuan/pull/10855
This commit is contained in:
parent
ffc8b41c50
commit
8815e361f5
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ func exportResources(c *gin.Context) {
|
|||
name = time.Now().Format("export-2006-01-02_15-04-05") // 生成的 *.zip 文件主文件名
|
||||
}
|
||||
|
||||
if arg["paths"] == nil {
|
||||
if nil == arg["paths"] {
|
||||
ret.Code = 1
|
||||
ret.Data = ""
|
||||
ret.Msg = "paths is required"
|
||||
|
|
Loading…
Add table
Reference in a new issue