Drop redundant Suppress("RemoveExplicitTypeArguments")

This commit is contained in:
Mikhail Glukhikh
2022-01-25 10:57:53 +03:00
committed by Space
parent 02d74fbd87
commit ad0d0ca47f
13 changed files with 18 additions and 35 deletions
@@ -13,9 +13,7 @@ internal data class NameAndSafeValue(val name: String, val safeValue: String)
internal object SafeEnvVars : Iterable<NameAndSafeValue> {
private val environment: List<NameAndSafeValue> by lazy {
// See KT-49925
@Suppress("RemoveExplicitTypeArguments")
buildList<NameAndSafeValue> {
buildList {
System.getenv().forEach { (name, value) ->
val safeValue = if (isSafeEnvVar(name)) doEscape(value) else HIDDEN_VALUE
this += NameAndSafeValue(name, safeValue)