diff --git a/src/stdlib/cson.coffee b/src/stdlib/cson.coffee index 7cc43d496..eab575a11 100644 --- a/src/stdlib/cson.coffee +++ b/src/stdlib/cson.coffee @@ -67,8 +67,7 @@ module.exports = stringify: (object) -> throw new Error("Cannot stringify undefined object") if object is undefined - if _.isFunction(object) - throw new Error("Cannot stringify function: #{object}") + throw new Error("Cannot stringify function: #{object}") if _.isFunction(object) return @stringifyString(object) if _.isString(object) return @stringifyBoolean(object) if _.isBoolean(object)