浏览代码

small refactor

Guénaël Muller 6 年前
父节点
当前提交
44edcb3c15
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      tracim/tracim/lib/content.py

+ 1 - 5
tracim/tracim/lib/content.py 查看文件

@@ -886,11 +886,7 @@ class ContentApi(object):
886 886
         else:
887 887
             workspace = item.workspace
888 888
             parent = item.parent
889
-
890
-        if new_label:
891
-            label = new_label
892
-        else:
893
-            label = item.label
889
+        label = new_label or item.label
894 890
 
895 891
         content = item.copy(parent)
896 892
         # INFO - GM - 15-03-2018 - add "copy" revision