Browse Source

:art: Clean code https://github.com/siyuan-note/siyuan/pull/10855

Daniel 1 năm trước cách đây
mục cha
commit
8815e361f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      kernel/api/export.go

+ 1 - 1
kernel/api/export.go

@@ -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"