Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Jun 10, 2019
1 parent f445e66 commit d002d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -15,6 +15,6 @@ public class Blacklist {
private Set<String> items;

public Set<String> getItems() {
return (Set<String>) (items == null ? Collections.emptySet() : items);
return items == null ? Collections.emptySet() : items;
}
}
Expand Up @@ -24,7 +24,7 @@ public class Config {
private Set<String> allowedItems;

public Map<String, Blacklist> getBlacklist() {
return (Map<String, Blacklist>) (blacklist == null ? Collections.emptyMap() : blacklist);
return blacklist == null ? Collections.emptyMap() : blacklist;
}

public Action getUnavailable() {
Expand All @@ -44,11 +44,11 @@ public Action getOnRateLimit() {
}

public Set<String> getWhitelist() {
return (Set<String>) (whitelist == null ? Collections.emptySet() : whitelist);
return whitelist == null ? Collections.emptySet() : whitelist;
}

public Set<String> getAllowedItems() {
return (Set<String>) (allowedItems == null ? Collections.emptySet() : allowedItems);
return allowedItems == null ? Collections.emptySet() : allowedItems;
}

public int getRateLimit() {
Expand Down

0 comments on commit d002d05

Please sign in to comment.