From 41c23f76c07f74e2f9d97e06eb3642023230fb75 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Wed, 20 Jan 2016 14:01:51 -0500 Subject: [PATCH] Get rid of superfluous checks thanks @rschamp! --- src/mixins/api.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/api.jsx b/src/mixins/api.jsx index f0f0269f2..d2bf8ec9d 100644 --- a/src/mixins/api.jsx +++ b/src/mixins/api.jsx @@ -45,7 +45,7 @@ var Api = { // Legacy API responses come as lists, and indicate to redirect the client like // [{success: true, redirect: "/location/to/redirect"}] try { - if (body && body[0] && 'redirect' in body[0]) window.location = body[0].redirect; + if ('redirect' in body[0]) window.location = body[0].redirect; } catch (err) { // do nothing }