Skip to content

Commit

Permalink
ignore null and undefined in echo
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed May 21, 2024
1 parent 24feeb7 commit e0544dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ class WebAdapter {
}
this._term.error(message);
}
echo(arg = "", options = {}) {
echo(arg = null, options = {}) {
if (arg === undefined || arg === null) {
return;
}
if (typeof arg !== 'function') {
arg = to_string(arg);
}
Expand Down

0 comments on commit e0544dc

Please sign in to comment.