Browse Source

small refactor

Guénaël Muller 6 years ago
parent
commit
44edcb3c15
1 changed files with 1 additions and 5 deletions
  1. 1 5
      tracim/tracim/lib/content.py

+ 1 - 5
tracim/tracim/lib/content.py View File

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