diff options
author | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-13 11:00:48 +0000 |
---|---|---|
committer | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-13 11:00:48 +0000 |
commit | 4660a27a8005cfe7a532210bf1772f2eba0ca068 (patch) | |
tree | 9ad860f2eed9f8ba9fe65d83bbfc02e6de8d9eaf /src | |
parent | 2972ae904325e71c849fc2a3ac3391134615f0a8 (diff) | |
download | buildstream-4660a27a8005cfe7a532210bf1772f2eba0ca068.tar.gz |
element.py: Remove temporary variable
This variable is used only once, when the original is used multiple
times. This only increases the cognitive load
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 106460b9a..7c097bad6 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2096,9 +2096,9 @@ class Element(Plugin): # def _fetch(self, fetch_original=False): previous_sources = [] - sources = self.__sources fetch_needed = False - if sources and not fetch_original: + + if self.__sources and not fetch_original: for source in self.__sources: if self.__sourcecache.contains(source): continue |