Skip to content

Commit

Permalink
Better variable name in Assembla checker
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Mar 1, 2020
1 parent acebb46 commit d9fe71b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/git/browser/AssemblaWeb.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ protected FormValidation check() throws IOException, ServletException {
}.check();
}

private boolean checkURIFormatAndHostName(String url, String browserName) throws URISyntaxException {
private boolean checkURIFormatAndHostName(String url, String hostNameFragment) throws URISyntaxException {
URI uri = new URI(url);
String[] schemes = {"http", "https"};
UrlValidator urlValidator = new UrlValidator(schemes);
browserName = browserName + ".";
return urlValidator.isValid(uri.toString()) && uri.getHost().contains(browserName);
hostNameFragment = hostNameFragment + ".";
return urlValidator.isValid(uri.toString()) && uri.getHost().contains(hostNameFragment);
}
}
}

0 comments on commit d9fe71b

Please sign in to comment.