Skip to content

Commit

Permalink
[JENKINS-42310] NullSCM Lint defect support Maven and Matrix projects
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Feb 25, 2017
1 parent 41f4345 commit 6770f33
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,7 +1,7 @@
package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.Item;
import hudson.model.Project;
import hudson.model.AbstractProject;
import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck;

/**
Expand All @@ -16,8 +16,8 @@ public NullSCMChecker() {
}

public boolean executeCheck(Item item) {
if (item instanceof Project) {
return (((Project) item).getScm() instanceof hudson.scm.NullSCM);
if (item instanceof AbstractProject) {
return (((AbstractProject) item).getScm() instanceof hudson.scm.NullSCM);
}
return false;
}
Expand Down

0 comments on commit 6770f33

Please sign in to comment.