Skip to content

Commit

Permalink
refactor: use TsUtil.isEmptyOrSpacesOrNull
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Aug 23, 2020
1 parent be218a7 commit ab2f7d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/plugin/tsnode/lib/cmd/NodeJSCommandLine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.intellij.openapi.util.text.StringUtil
import com.intellij.util.ThrowableConsumer
import io.plugin.tsnode.execution.TsRunConfiguration
import io.plugin.tsnode.execution.TsRunSettings
import io.plugin.tsnode.execution.TsUtil
import java.nio.charset.Charset

object MyNodeCommandLineUtil
Expand All @@ -28,7 +29,7 @@ object MyNodeCommandLineUtil
*/
val v = runConfig.runSettings.envData.envs.get("NODEJS_CONSOLE_USE_TERMINAL")

if (!v.isNullOrEmpty() && !v.isBlank())
if (!TsUtil.isEmptyOrSpacesOrNull(v))
{
usePtyWithTerminalConsole = v.toString().toBoolean()
}
Expand Down

0 comments on commit ab2f7d4

Please sign in to comment.