mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
minor cleanup
This commit is contained in:
parent
7f2924b764
commit
6e6ecfb339
1 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ class GollumObsessedStalkerWatcher extends Watcher {
|
|||
return;
|
||||
}
|
||||
|
||||
playersPerName.computeIfAbsent(name, k -> new HashSet());
|
||||
playersPerName.computeIfAbsent(name, k -> new HashSet<>());
|
||||
playersPerName.get(name).add(playerId);
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ enum GollumObsessedStalkerHint implements Hint {
|
|||
name = gollumObj.getName();
|
||||
}
|
||||
}
|
||||
if (name.isEmpty()) {
|
||||
if (name == null || name.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
@ -194,4 +194,4 @@ enum GollumObsessedStalkerHint implements Hint {
|
|||
public GollumObsessedStalkerHint copy() {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue