mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
remove guard func and comment
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user