Remove redundant code in get_activity_root
- same condition is being checked in the module function get_activity_root
This commit is contained in:
parent
30139a3a9e
commit
8f047b5819
@ -736,9 +736,6 @@ 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 os.environ['SUGAR_ACTIVITY_ROOT']
|
|
||||||
else:
|
|
||||||
return get_activity_root()
|
return get_activity_root()
|
||||||
|
|
||||||
def read_file(self, file_path):
|
def read_file(self, file_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user