Skip to content

Commit

Permalink
fix: remove unnecessary hashKey.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausTrainer committed Jan 5, 2017
1 parent e46e351 commit f9e3ef8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ DynamoDBDOWN.prototype._put = function (key, value, options, cb) {
const params = {
TableName: this.encodedTableName,
Item: {
hkey: {S: this.hashKey.toString()},
hkey: {S: this.hashKey},
rkey: {S: key.toString()},
value: serialize(value, options.asBuffer)
}
Expand All @@ -94,7 +94,7 @@ DynamoDBDOWN.prototype._get = function (key, options, cb) {
const params = {
TableName: this.encodedTableName,
Key: {
hkey: {S: this.hashKey.toString()},
hkey: {S: this.hashKey},
rkey: {S: key.toString()}
}
}
Expand All @@ -114,7 +114,7 @@ DynamoDBDOWN.prototype._del = function (key, options, cb) {
const params = {
TableName: this.encodedTableName,
Key: {
hkey: {S: this.hashKey.toString()},
hkey: {S: this.hashKey},
rkey: {S: key.toString()}
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@ DynamoDBDOWN.prototype._batch = function (array, options, cb) {
op = {
DeleteRequest: {
Key: {
hkey: {S: this.hashKey.toString()},
hkey: {S: this.hashKey},
rkey: {S: item.key.toString()}
}
}
Expand All @@ -159,7 +159,7 @@ DynamoDBDOWN.prototype._batch = function (array, options, cb) {
op = {
PutRequest: {
Item: {
hkey: {S: this.hashKey.toString()},
hkey: {S: this.hashKey},
rkey: {S: item.key.toString()},
value: serialize(item.value, options.asBuffer)
}
Expand Down

0 comments on commit f9e3ef8

Please sign in to comment.