Skip to content

Commit b451ccb

Browse files
author
BL
committed
remove overuse of the toString() and correct variable naming convention
1 parent dcd9bc4 commit b451ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AmazonMwsResource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ AmazonMwsResource.prototype = {
255255
/**
256256
* https://github.com/ashtuchkin/iconv-lite/issues/32
257257
*/
258-
var str = iconv.decode(bufferString, 'win1251').toString();
259-
responseString = iconv.encode(str, charset).toString();
258+
var win1251String = iconv.decode(bufferString, 'win1251');
259+
responseString = iconv.encode(win1251String, charset);
260260
} catch (Exception) {
261261
debug('Exception iconv ', Exception);
262262
return callback.call(self, new Error.AmazonMwsAPIError({

0 commit comments

Comments
 (0)