hubotio / generator-hubot

Hubot generator for Yeoman
MIT License
156 stars 83 forks source link

Only call git helper functions if they are functions #30

Closed technicalpickles closed 9 years ago

technicalpickles commented 9 years ago

This was reported in https://github.com/github/generator-hubot/issues/15 . For some reason, this.user.git.name and this.user.git.email in this case weren't functions.

This is a workaround to check their type before calling them. If they aren't functions, they are assumed to be the value.