Skip to content

Commit 8057e81

Browse files
NHDalyrobbear
andcommitted
[JS SDK] Remove error-check for non-empty params.out
Co-authored-by: Rob Bearman <robbear@hyperfine.com>
1 parent 45c3f1e commit 8057e81

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

client/src/sdk/LocalConnection.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ class LocalConnection extends Connection {
227227
* @return {Object} - {txn_output, query_output, problems}
228228
*/
229229
query(params) {
230-
// Check if `outputs` is valid, exit if not.
231-
if (typeof params.out === 'undefined' || params.out === null || params.out.length === null || params.out.length === 0) {
232-
throw new Error("`params.outputs` array must have values.")
233-
}
234-
235230
return new Promise((resolve, reject) => {
236231
let action = new sdk.QueryAction()
237232
action.source = new sdk.Source()

0 commit comments

Comments
 (0)