Skip to content

Commit

Permalink
Merge pull request #19 from kjjuno/bugfix/18-buffer-deprecated
Browse files Browse the repository at this point in the history
Using Buffer.from instead of new Buffer()
Closes #18
  • Loading branch information
kjjuno committed Feb 14, 2019
2 parents 03207bb + d672b13 commit 06b44af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swagger-compare-cli.js
Expand Up @@ -14,7 +14,7 @@ async function loadFile(file) {
try {
if (file.startsWith('http')) {
var ret = await axios.get(file);
var buffer = new Buffer(ret.data, 'binary');
var buffer = Buffer.from(ret.data, 'binary');
text = buffer.toString();
}
else {
Expand Down

0 comments on commit 06b44af

Please sign in to comment.