Remove redundant code in get_activity_root

- same condition is being checked in the module function get_activity_root
This commit is contained in:
Pro-Panda 2018-04-02 02:18:02 +05:30 committed by James Cameron
parent 30139a3a9e
commit 8f047b5819

View File

@ -736,10 +736,7 @@ class Activity(Window, Gtk.Container):
which isn't specific to a journal item here. If (meta-)data is in which isn't specific to a journal item here. If (meta-)data is in
anyway specific to a journal entry, it MUST be stored in the DataStore. anyway specific to a journal entry, it MUST be stored in the DataStore.
''' '''
if os.environ.get('SUGAR_ACTIVITY_ROOT'): return get_activity_root()
return os.environ['SUGAR_ACTIVITY_ROOT']
else:
return get_activity_root()
def read_file(self, file_path): def read_file(self, file_path):
''' '''