Skip to content

Commit

Permalink
Correct spelling of an internal variable (jenkinsci#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed May 9, 2024
1 parent 36a50c6 commit 4bd83cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/jenkinsci/plugins/impliedlabels/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,17 @@ public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws IOExc
*/
public @NonNull Collection<LabelAtom> detectRedundantLabels(@NonNull Node node) {
final @NonNull Set<LabelAtom> initial = initialLabels(node);
final @NonNull Set<LabelAtom> infered = new HashSet<>();
final @NonNull Set<LabelAtom> inferred = new HashSet<>();
final @NonNull Set<LabelAtom> accumulated = new HashSet<>(initial);

for (Implication i : implications()) {
Collection<LabelAtom> ii = i.infer(accumulated);
infered.addAll(ii);
inferred.addAll(ii);
accumulated.addAll(ii);
}

infered.retainAll(initial);
return infered;
inferred.retainAll(initial);
return inferred;
}

XmlFile getConfigFile() {
Expand Down

0 comments on commit 4bd83cb

Please sign in to comment.