Skip to content

Commit b328c3e

Browse files
committed
Remove redundant check
The payload object was already initialized with the `username` value, so there's no need to check whether is specified or not.
1 parent b5ef528 commit b328c3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jira/client.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2845,9 +2845,7 @@ def search_users(
28452845
"includeInactive": includeInactive,
28462846
}
28472847

2848-
if user:
2849-
params["username"] = user
2850-
else:
2848+
if query:
28512849
params["query"] = query
28522850

28532851
return self._fetch_pages(User, None, "user/search", startAt, maxResults, params)

0 commit comments

Comments
 (0)