mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
Minor code cleanup in SongodaYamlConfig constructor
keeps the logger effectively final + makes Codacity' static code analysis happy
This commit is contained in:
parent
ed7b454625
commit
84515e7004
@ -52,11 +52,7 @@ public class SongodaYamlConfig extends YamlConfiguration {
|
||||
super();
|
||||
|
||||
this.file = Objects.requireNonNull(file);
|
||||
|
||||
if (logger == null) {
|
||||
logger = Logger.getLogger(getClass().getName());
|
||||
}
|
||||
this.logger = logger;
|
||||
this.logger = logger != null ? logger : Logger.getLogger(getClass().getName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user