Skip to content

Commit 8da4f3a

Browse files
committed
Only perform copy when necessary
1 parent b02cd75 commit 8da4f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsig/spec_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def _process_specs(self, specs_json, source: DataSource) -> Tuple[bool, bool]:
166166
return False, False
167167
if specs_json.get("time", 0) < self.last_update_time():
168168
return False, False
169-
copy = json.dumps(specs_json)
170169
if callable(self._options.rules_updated_callback):
170+
copy = json.dumps(specs_json)
171171
self._options.rules_updated_callback(copy)
172172

173173
def get_parsed_specs(key: str):

0 commit comments

Comments
 (0)