Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
shashachu committed Apr 17, 2019
1 parent bc5dfd8 commit b223fae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
StandardRuleSetProvider
com.pinterest.ktlint.ruleset.standard.StandardRuleSetProvider
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ class EditorConfig private constructor (
.toList()
.asReversed()
.fold(null as EditorConfig?) { parent, (path, data) ->
EditorConfig(parent, path, (parent?.data
?: emptyMap()) + flatten(data.value))
EditorConfig(
parent, path,
(
parent?.data
?: emptyMap()
) + flatten(data.value)
)
}

fun cached(): EditorConfigLookup = object : EditorConfigLookup {
Expand All @@ -54,8 +59,10 @@ class EditorConfig private constructor (
val editorConfig = if (Files.exists(editorConfigPath)) {
EditorConfig(
parent, editorConfigPath,
(parent?.data
?: emptyMap()) + flatten(load(editorConfigPath))
(
parent?.data
?: emptyMap()
) + flatten(load(editorConfigPath))
)
} else {
parent
Expand Down

0 comments on commit b223fae

Please sign in to comment.