From e9a4d3ca2a8ff82f2f4dc26bc8ac604ba70794f9 Mon Sep 17 00:00:00 2001 From: Philip Weiss Date: Thu, 18 Jan 2018 14:33:48 -0800 Subject: [PATCH] remove guard func and comment --- src/config.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/config.js b/src/config.js index ea50fb122..6018c5dc0 100644 --- a/src/config.js +++ b/src/config.js @@ -3,7 +3,6 @@ /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from - * DS103: Rewrite code to no longer use __guard__ * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ @@ -1602,7 +1601,3 @@ var withoutEmptyObjects = function (object) { } return resultObject } - -function __guard__ (value, transform) { - return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined -}