ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
120 stars 67 forks source link

Replace constant declaration for variable with let #54

Closed ZinoKader closed 4 years ago

ZinoKader commented 4 years ago

"library" in L154 was declared as const, and possibly reassigned at L164 which resulted in a TypeError

This PR simply declares library with a let instead of a const.

ErikWittern commented 4 years ago

@ZinoKader Good catch, and thanks for that fix!

ZinoKader commented 4 years ago

No problemo! Thanks for the handy library! Are you going to put out a release with this fix?

ErikWittern commented 4 years ago

@ZinoKader Yes, v0.9.2 was just published!