Skip to content

Commit 99390aa

Browse files
committed
Remove unneccessary condition in wrapStandardCompiler
1 parent 5441f2c commit 99390aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ function setupMethods (soljson) {
114114
readCallback = readCallback.import;
115115
}
116116

117-
if (readCallback !== undefined && typeof readCallback !== 'function') {
118-
return formatFatalError('Invalid import callback supplied');
117+
if (readCallback !== undefined) {
118+
assert(typeof readCallback === 'function', 'Invalid callback specified.');
119119
}
120120

121121
try {

0 commit comments

Comments
 (0)