mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 18:16:10 +00:00
remove needless null check, subject isn't null (from above)
This commit is contained in:
1 parent
6201362a5f
commit
6bd3f83cb1
1 file changed
+1
-1
@@ -1819,7 +1819,7 @@ public final class FilePath implements Serializable {
|
||||
value = fixEmpty(value);
|
||||
|
||||
// none entered yet, or something is seriously wrong
|
||||
if(value==null || (AbstractProject<?,?>)subject ==null) return FormValidation.ok();
|
||||
if(value==null) return FormValidation.ok();
|
||||
|
||||
// a common mistake is to use wildcard
|
||||
if(value.contains("*")) return FormValidation.error(Messages.FilePath_validateRelativePath_wildcardNotAllowed());
|
||||
|
||||
Reference in new issue
Block a user