Skip to content

Commit

Permalink
[JENKINS-68562] Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dwnusbaum committed May 17, 2022
1 parent 1ce443c commit 83580ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/hudson/plugins/git/GitSCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import java.io.Serializable;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.Paths;
import java.text.MessageFormat;
import java.util.AbstractList;
Expand All @@ -104,7 +105,6 @@
import hudson.Util;
import hudson.plugins.git.extensions.impl.ScmName;
import hudson.util.LogTaskListener;
import java.nio.file.InvalidPathException;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -1409,8 +1409,7 @@ void abortIfSourceIsLocal() throws AbortException {
private static boolean isRemoteUrlValid(String remoteUrl) {
if (remoteUrl == null) {
return true;
}
if (remoteUrl.toLowerCase(Locale.ENGLISH).startsWith("file://")) {
} else if (remoteUrl.toLowerCase(Locale.ENGLISH).startsWith("file://")) {
return false;
}
try {
Expand Down

0 comments on commit 83580ff

Please sign in to comment.