Skip to content

Commit

Permalink
remove overuse of the toString() and correct variable naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
BL committed Sep 5, 2018
1 parent dcd9bc4 commit b451ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/AmazonMwsResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ AmazonMwsResource.prototype = {
/**
* https://github.com/ashtuchkin/iconv-lite/issues/32
*/
var str = iconv.decode(bufferString, 'win1251').toString();
responseString = iconv.encode(str, charset).toString();
var win1251String = iconv.decode(bufferString, 'win1251');
responseString = iconv.encode(win1251String, charset);
} catch (Exception) {
debug('Exception iconv ', Exception);
return callback.call(self, new Error.AmazonMwsAPIError({
Expand Down

0 comments on commit b451ccb

Please sign in to comment.