From ed5f18e579337918e1715c164f8eb6a9f9c3f55f Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 25 Jul 2018 15:40:10 -0500 Subject: [PATCH] simplify ternary re: `__mainContext` and `this` --- lib/contracts/code_templates/main-context.js.ejs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/contracts/code_templates/main-context.js.ejs b/lib/contracts/code_templates/main-context.js.ejs index 77694c7b..77152eb8 100644 --- a/lib/contracts/code_templates/main-context.js.ejs +++ b/lib/contracts/code_templates/main-context.js.ejs @@ -1,5 +1,3 @@ var __mainContext = __mainContext || ( - typeof this !== 'undefined' ? this : ( - typeof self !== 'undefined' ? self : void 0 - ) + this ? this : typeof self !== 'undefined' ? self : void 0 );