Skip to content

Commit

Permalink
ignore line by line undefineds
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed May 24, 2024
1 parent 39493c4 commit 7072c37
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/include/utilFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,22 @@ const _chartPathParse = (r, frmt, prefix, isStatic) => {
return ""
}
const _print = (m) => {
if ("undefined" === typeof params.outfile) {
print(m)
} else {
if ("undefined" === typeof global.__oafp_streams) global.__oafp_streams = {}
if ("undefined" !== typeof global.__oafp_streams[params.outfile]) {
ioStreamWrite(global.__oafp_streams[params.outfile].s, m + (toBoolean(params.outfileappend) ? "\n" : ""))
if ("undefined" !== typeof m) {
if ("undefined" === typeof params.outfile) {
print(m)
} else {
if ("undefined" === typeof global.__oafp_streams) global.__oafp_streams = {}
if ("undefined" !== typeof global.__oafp_streams[params.outfile]) {
ioStreamWrite(global.__oafp_streams[params.outfile].s, m + (toBoolean(params.outfileappend) ? "\n" : ""))
}
}
}
}
const _o$o = (a, b, c) => {
var _s = $o(a, b, c, true)
if (isDef(_s)) _print(_s)
if ("undefined" !== typeof a) {
var _s = $o(a, b, c, true)
if (isDef(_s)) _print(_s)
}
}
const _msg = "(processing data...)"
const _showTmpMsg = msg => { if (params.out != 'grid' && !params.__inception && !toBoolean(params.loopcls) && !toBoolean(params.chartcls)) printErrnl(_$(msg).default(_msg)) }
Expand Down

0 comments on commit 7072c37

Please sign in to comment.