Skip to content

Commit

Permalink
Fix a lint warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Jan 23, 2018
1 parent 9d3a6ff commit c99a530
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ public synchronized <T, R> List<Class<R>> getResourceClasses(@NonNull Class<T> d
continue;
}
for (Entry<?, ?> entry : entries) {
if (entry.handles(dataClass, resourceClass)) {
if (!result.contains((Class<R>) entry.resourceClass)) {
result.add((Class<R>) entry.resourceClass);
}
if (entry.handles(dataClass, resourceClass)
&& !result.contains((Class<R>) entry.resourceClass)) {
result.add((Class<R>) entry.resourceClass);
}
}
}
Expand Down

0 comments on commit c99a530

Please sign in to comment.