Skip to content

Commit

Permalink
Use concatenation instead of appending
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov authored Aug 10, 2023
1 parent 1375d06 commit 4b03bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vitessce/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def use_coordination(self, *c_scopes, allow_multiple_scopes_per_type=False):
new_value = c_scope.c_scope
if (existing_value is not None and allow_multiple_scopes_per_type):
if (isinstance(existing_value, list)):
self.view["coordinationScopes"][c_scope.c_type] = existing_value.append(new_value)
self.view["coordinationScopes"][c_scope.c_type] = existing_value + [new_value]
else:
self.view["coordinationScopes"][c_scope.c_type] = [existing_value, new_value]
else:
Expand Down

0 comments on commit 4b03bfb

Please sign in to comment.