Skip to content

Commit

Permalink
Check null or blank
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed Oct 19, 2024
1 parent 62f9472 commit d53a62e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ internal class KtlintCommandLine : CliktCommand(name = "ktlint") {
val editorConfigOverride =
EditorConfigOverride
.EMPTY_EDITOR_CONFIG_OVERRIDE
.applyIf(stdin && stdinPath == null) {
.applyIf(stdin && stdinPath.isNullOrBlank()) {
logger.debug {
"Add editor config override to disable 'filename' rule which can not be used in combination with reading from " +
"<stdin>"
Expand Down

0 comments on commit d53a62e

Please # to comment.