From f5b7797255576e5f1c230e2ca3fcb5f4e602387c Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 21 Feb 2022 22:01:06 +0800 Subject: Code cleanups (#2165) --- core/src/main/kotlin/pages/ContentNodes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin/pages') diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 23baa482..4210b4dd 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -33,7 +33,7 @@ data class ContentText( ) : ContentNode { override fun withNewExtras(newExtras: PropertyContainer): ContentText = copy(extra = newExtras) override fun withSourceSets(sourceSets: Set): ContentText = copy(sourceSets = sourceSets) - override fun hasAnyContent(): Boolean = !text.isBlank() + override fun hasAnyContent(): Boolean = text.isNotBlank() } // TODO: Remove -- cgit