Remove difference in nullable state for loadState()

This commit is contained in:
Nikolay Krasko
2018-05-30 18:13:06 +03:00
parent f8217ef28f
commit 496243c3ce
2 changed files with 2 additions and 45 deletions
@@ -400,11 +400,9 @@ class KotlinImporterComponent : PersistentStateComponent<KotlinImporterComponent
val addedSources: MutableSet<String> = Collections.synchronizedSet(HashSet<String>())
override fun loadState(state: State?) {
override fun loadState(state: State) {
addedSources.clear()
if (state != null) {
addedSources.addAll(state.directories)
}
addedSources.addAll(state.directories)
}
override fun getState(): State {