mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Disabled warning message for StatListGetter#get(short)
assigning #get() and checking null is a common usage
This commit is contained in:
parent
947862be1a
commit
b7bf3ca62a
@ -75,11 +75,7 @@ public final class StatListGetter implements Iterable<StatGetter> {
|
||||
/** @see StatList#indexOf(int, short) */
|
||||
public StatGetter get(short stat) {
|
||||
final int index = indexOf(stat);
|
||||
if (index < 0) {
|
||||
log.warn("stats({}) list({}) did not contain stat({})", stats, list, stat);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (index < 0) return null;
|
||||
return tuple.set(stats, index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user