Skip to content

Commit 2eb8ee2

Browse files
Remove checking for None, redundant
1 parent bec6f5a commit 2eb8ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/imcflibs/imagej/omerotools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def parse_url(client, omero_str):
5757
>>> for wrapper in img_wrappers:
5858
>>> imp = wpr.toImagePlus(client)
5959
"""
60-
if omero_str is None or str(omero_str).strip() == "":
60+
if not str(omero_str).strip():
6161
raise ValueError("No OMERO link or image ID provided.")
6262

6363
# Sanitize the string

0 commit comments

Comments
 (0)