File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/hudson/plugins/git Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 78
78
import java .io .Serializable ;
79
79
import java .io .Writer ;
80
80
import java .nio .file .Files ;
81
+ import java .nio .file .InvalidPathException ;
81
82
import java .nio .file .Paths ;
82
83
import java .text .MessageFormat ;
83
84
import java .util .AbstractList ;
104
105
import hudson .Util ;
105
106
import hudson .plugins .git .extensions .impl .ScmName ;
106
107
import hudson .util .LogTaskListener ;
107
- import java .nio .file .InvalidPathException ;
108
108
import java .util .Map .Entry ;
109
109
import java .util .regex .Matcher ;
110
110
import java .util .regex .Pattern ;
@@ -1409,8 +1409,7 @@ void abortIfSourceIsLocal() throws AbortException {
1409
1409
private static boolean isRemoteUrlValid (String remoteUrl ) {
1410
1410
if (remoteUrl == null ) {
1411
1411
return true ;
1412
- }
1413
- if (remoteUrl .toLowerCase (Locale .ENGLISH ).startsWith ("file://" )) {
1412
+ } else if (remoteUrl .toLowerCase (Locale .ENGLISH ).startsWith ("file://" )) {
1414
1413
return false ;
1415
1414
}
1416
1415
try {
You can’t perform that action at this time.
0 commit comments