diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 177e7416..4f0be9c0 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -587,8 +587,10 @@ RPC.prototype.getBlockByHeight = co(function* getBlockByHeight(args, help) { var details = valid.bool(2, false); var entry, block; - if (help || args.length < 1 || args.length > 3) - throw new RPCError(errs.MISC_ERROR, 'getblockbyheight "height" ( verbose )'); + if (help || args.length < 1 || args.length > 3) { + throw new RPCError(errs.MISC_ERROR, + 'getblockbyheight "height" ( verbose )'); + } if (height === -1) throw new RPCError(errs.TYPE_ERROR, 'Invalid block height.');