From 2f188770e56a557871d5f482b40ea31ef5031750 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 31 Jan 2017 15:59:38 +0000 Subject: [PATCH] Typo --- src/RtsClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RtsClient.js b/src/RtsClient.js index fe1f0538ca..0115edacb4 100644 --- a/src/RtsClient.js +++ b/src/RtsClient.js @@ -1,6 +1,6 @@ const q = require('q'); const request = (opts) => { - const expectingJSONOnSucess = opts.json; + const expectingJSONOnSuccess = opts.json; if (opts.json) { opts.json = false; } @@ -13,7 +13,7 @@ const request = (opts) => { throw new Error(body); } - if (expectingJSONOnSucess) { + if (expectingJSONOnSuccess) { body = JSON.parse(body); }