chore(refactor): use referenced optimist variable

Optimist is assigned to a variable so use it
Merge pull request #86 from eddiemonge/patch-1

chore(refactor): use referenced optimist variable