remove guard func and comment

This commit is contained in:
Philip Weiss
2018-01-18 14:33:48 -08:00
parent acaf8a0316
commit e9a4d3ca2a

View File

@@ -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
}