From 567e4c8859e2f5a0ae84a56181bb295313d7d8f9 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 77694c7b4..77152eb84 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 );