Skip to content

Commit f88f786

Browse files
committed
Code polished.
1 parent 7e38f9a commit f88f786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aima-core/src/main/java/aima/core/agent/impl/aprog/SimpleReflexAgentProgram.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final Optional<A> apply(P percept) {
5353

5454
protected abstract DynamicState interpretInput(P p);
5555

56-
private Rule<A> ruleMatch(ObjectWithDynamicAttributes state, Set<Rule<A>> rulesSet) {
57-
return rulesSet.stream().filter(r -> r.evaluate(state)).findFirst().orElse(null);
56+
private Rule<A> ruleMatch(ObjectWithDynamicAttributes state, Set<Rule<A>> rules) {
57+
return rules.stream().filter(r -> r.evaluate(state)).findFirst().orElse(null);
5858
}
5959
}

0 commit comments

Comments
 (0)