From 8f047b58195dfed88f4cf4aef3ac122ccd5ff0eb Mon Sep 17 00:00:00 2001 From: Pro-Panda Date: Mon, 2 Apr 2018 02:18:02 +0530 Subject: [PATCH] Remove redundant code in get_activity_root - same condition is being checked in the module function get_activity_root --- src/sugar3/activity/activity.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py index 956e967c..8f88b80f 100644 --- a/src/sugar3/activity/activity.py +++ b/src/sugar3/activity/activity.py @@ -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): '''