Skip to content

Commit

Permalink
fix(android): use temp var for query
Browse files Browse the repository at this point in the history
  • Loading branch information
garymathews authored and github-actions[bot] committed Feb 10, 2021
1 parent 8c7a7d4 commit 631637a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ public void setUrl(String url)
final Uri uri = Uri.parse(url);

// Extract URL query parameters.
final String query = uri.getEncodedQuery() != null ? "?" + uri.getEncodedQuery() : "";
final String encodedQuery = uri.getEncodedQuery();
final String query = encodedQuery != null ? "?" + encodedQuery : "";
final String fragment = uri.getFragment();

// Resolve URL path.
Expand Down

0 comments on commit 631637a

Please sign in to comment.