Skip to content

Commit 75f0ff4

Browse files
committed
Cleanup for PR
1 parent 12662cb commit 75f0ff4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

splitio/sync/segment.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,9 @@ def synchronize_segment(self, segment_name, till=None):
153153
_LOGGER.debug('Refresh completed bypassing the CDN in %d attempts.',
154154
without_cdn_attempts)
155155
return True
156-
else:
157-
_LOGGER.debug('No changes fetched after %d attempts with CDN bypassed.',
158-
without_cdn_attempts)
159-
return False
156+
_LOGGER.debug('No changes fetched after %d attempts with CDN bypassed.',
157+
without_cdn_attempts)
158+
return False
160159

161160
def synchronize_segments(self, segment_names = None):
162161
"""
@@ -187,5 +186,4 @@ def segment_exist_in_storage(self, segment_name):
187186
"""
188187
if self._segment_storage.get(segment_name) != None:
189188
return True
190-
else:
191-
return False
189+
return False

splitio/sync/split.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import logging
33
import re
44
import itertools
5-
from numpy import append
6-
from pyparsing import Each
75
import yaml
86
import time
97

0 commit comments

Comments
 (0)