Skip to content

Conversation

@samgavinio
Copy link
Contributor

@samgavinio samgavinio commented Feb 8, 2018

/cc @zendesk/mintegrations

Description

This fixes a bad condition I introduced in this commit: ca2f69f

There was a typo in the variable name and the if condition was incorrect 🤦‍♂️

Fortunately, there is no bug caused by this. The bad condition just resulted in the snippet always being stored in the db every time the config is saved, one unnecessary write. Ironically enough, it was because of the variable typo that the bad if-condition did not cause a bug.

Risks

  • [low] variable naming could further introduce confusion over this already pretty verbose conditional, hopefully made it more concise.

This fixes a bad condition introduced in:
ca2f69f

Fortunately, there is no bug caused by this. Just resulted in the
snippet always being stored in the db every time the config is saved,
one unnecessary write though.
@samgavinio samgavinio merged commit 998c4f6 into master Feb 8, 2018
@samgavinio samgavinio deleted the samgavinio/fix-incorrect-snippet-condition branch February 8, 2018 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants