You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In removeTerm(), if a term is not found, it returns undefined due to the return being nested inside of the if [found]. Thus, if the last term in omittedJargon is not found, jargon will be set to undefined.
Possible fixes:
I think reducing the indent on the return will fix this.
Don't return anything and remove the jargon = from the omit line. removeTerm alters the incoming list.
https://github.com/hubot-scripts/hubot-business-cat/blob/master/src/businesscat.coffee#L27
In
removeTerm()
, if a term is not found, it returns undefined due to the return being nested inside of theif [found]
. Thus, if the last term inomittedJargon
is not found,jargon
will be set to undefined.Possible fixes:
jargon =
from the omit line. removeTerm alters the incoming list.Problem:
Possible solution 1:
Possible solution 2:
The text was updated successfully, but these errors were encountered: