Remove redundant code in get_activity_root

- same condition is being checked in the module function get_activity_root
master
Pro-Panda 6 years ago committed by James Cameron
parent 30139a3a9e
commit 8f047b5819

@ -736,10 +736,7 @@ class Activity(Window, Gtk.Container):
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.
'''
if os.environ.get('SUGAR_ACTIVITY_ROOT'):
return os.environ['SUGAR_ACTIVITY_ROOT']
else:
return get_activity_root()
return get_activity_root()
def read_file(self, file_path):
'''

Loading…
Cancel
Save