Skip to content

Commit c1e656f

Browse files
Update search.py - Remove redundant code
1 parent 0b85a64 commit c1e656f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SoftLayer/CLI/search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ def check_opt(list_opt=None):
4848

4949
list_opt = [query, types, advanced]
5050

51-
if check_opt(list_opt):
52-
pass
53-
else:
51+
if not check_opt(list_opt):
5452
raise click.UsageError('Search query must be provided')
5553

5654
search = SearchManager(env.client)

0 commit comments

Comments
 (0)