Skip to content

Commit

Permalink
Make accidentally exposed encodeKey function private.
Browse files Browse the repository at this point in the history
  • Loading branch information
valderman committed Feb 10, 2022
1 parent 103df79 commit bae3cec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private fun TomlValue.Map.writeTopLevel(output: Appendable) {
}
}

fun encodeKey(key: String): String = when {
private fun encodeKey(key: String): String = when {
!key.contains(quotesRequiredRegex) -> key
!key.contains('\n') -> "'$key'"
else -> {
Expand Down

0 comments on commit bae3cec

Please sign in to comment.