Skip to content

Commit 7867756

Browse files
ileasilenikitinas
authored andcommitted
[#32] Improved output capturing and added tests
1 parent d534c98 commit 7867756

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
@@ -349,3 +349,5 @@ fun JupyterConnection.evalWithIO(maybeConfig: OutputConfig?, body: () -> EvalRes
349349
System.setOut(out)
350350
}
351351
}
352+
353+
fun String.nullWhenEmpty(): String? = if (this.isBlank()) null else this

0 commit comments

Comments
 (0)