pierrec / node-lz4

LZ4 fast compression algorithm for NodeJS
MIT License
438 stars 98 forks source link

doc: remove code duplication in example #50

Closed janriemer closed 7 years ago

janriemer commented 7 years ago

This removes code duplication in the code example. Instead of calling the function twice, we use the value generated by the first function call.

Notice: I accidently created two commits. Maybe you can rebase it into one commit before merging it. 😉