This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
polite.coffee: Replace !== with ? (the coffeescript null check) #1241
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
!== causes compilation problems with the most recent version of coffeescript and hubot
Mon Dec 02 2013 16:04:50 GMT-0800 (PST)] ERROR Unable to load /src/hubot-scripts/src/scripts/polite: SyntaxError: unexpected =
at Object.exports.throwSyntaxError (/src/hubot/node_modules/coffee-script/lib/coffee-script/helpers.js:197:13)
at Object.parser.yy.parseError (/src/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:265:20)
at Object.parse (/src/hubot/node_modules/coffee-script/lib/coffee-script/parser.js:537:22)
at exports.compile.compile (/src/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:35:24)
at Object.loadFile (/src/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:176:14)
at Module.load (/src/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Robot.loadFile (/src/hubot/src/robot.coffee:181:9, :133:11)
at Robot.loadHubotScripts (/src/hubot/src/robot.coffee:208:7, :166:28)
at /src/hubot/bin/hubot:98:15, :99:30
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)