Skip to content

Commit 84f8f07

Browse files
ileasilenikitinas
authored andcommitted
[#32] Improved output capturing and added tests
1 parent ba87de9 commit 84f8f07

File tree

1 file changed

+2
-0
lines changed
  • src/main/kotlin/org/jetbrains/kotlin/jupyter

1 file changed

+2
-0
lines changed

src/main/kotlin/org/jetbrains/kotlin/jupyter/protocol.kt

+2
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,5 @@ fun JupyterConnection.evalWithIO(maybeConfig: OutputConfig?, body: () -> EvalRes
390390
System.setOut(out)
391391
}
392392
}
393+
394+
fun String.nullWhenEmpty(): String? = if (this.isBlank()) null else this

0 commit comments

Comments
 (0)