Skip to content

Commit

Permalink
Remove redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 25, 2023
1 parent a8ea3e5 commit d113f41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qz/utils/ConnectionUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ private static boolean isAllowed(String allowed, URL url) {
String[] protocols = allowed.split(",");
// Loop over http, https, etc
for(String protocol : protocols) {
if (url != null) {
if(urlProtocol.trim().equalsIgnoreCase(protocol.trim())) {
return true;
}
if(urlProtocol.trim().equalsIgnoreCase(protocol.trim())) {
return true;
}
}
// Allow exception for file: demo/assets
Expand Down

0 comments on commit d113f41

Please sign in to comment.