Skip to content

Commit b7ae5c5

Browse files
committed
Update if statement
1 parent a509496 commit b7ae5c5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vitessce/widget.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ def get_uid_str(uid):
212212
const updatedOptions = { ...f.options };
213213
OPTIONS_URL_KEYS.forEach(key => {
214214
const optionValue = updatedOptions[key];
215-
if (optionValue) {
216-
if (!isAbsoluteUrl(optionValue)) {
217-
updatedOptions[key] = `${origin}${baseUrl}${optionValue}`;
218-
}
215+
if (optionValue && !isAbsoluteUrl(optionValue)) {
216+
updatedOptions[key] = `${origin}${baseUrl}${optionValue}`;
219217
}
220218
});
221219
updatedFileDef.options = updatedOptions;

0 commit comments

Comments
 (0)