@jdeighan/coffee-utils 4.1.11 → 4.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/block_utils.coffee +1 -4
- package/src/block_utils.js +1 -5
package/package.json
CHANGED
package/src/block_utils.coffee
CHANGED
@@ -86,10 +86,7 @@ export joinBlocks = (lBlocks...) ->
|
|
86
86
|
|
87
87
|
lNonEmptyBlocks = []
|
88
88
|
for block in lBlocks
|
89
|
-
|
90
|
-
log "NOT A BLOCK"
|
91
|
-
log 'bad block', block
|
92
|
-
process.exit()
|
89
|
+
assert isString(block), "joinBlocks(): #{block} is not a string"
|
93
90
|
if nonEmpty(block)
|
94
91
|
lNonEmptyBlocks.push block
|
95
92
|
return lNonEmptyBlocks.join('\n')
|
package/src/block_utils.js
CHANGED
@@ -110,11 +110,7 @@ export var joinBlocks = function(...lBlocks) {
|
|
110
110
|
lNonEmptyBlocks = [];
|
111
111
|
for (i = 0, len1 = lBlocks.length; i < len1; i++) {
|
112
112
|
block = lBlocks[i];
|
113
|
-
|
114
|
-
log("NOT A BLOCK");
|
115
|
-
log('bad block', block);
|
116
|
-
process.exit();
|
117
|
-
}
|
113
|
+
assert(isString(block), `joinBlocks(): ${block} is not a string`);
|
118
114
|
if (nonEmpty(block)) {
|
119
115
|
lNonEmptyBlocks.push(block);
|
120
116
|
}
|