Skip to content

Commit 7518d69

Browse files
committed
bad variable names
1 parent fe80237 commit 7518d69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/scorekeep/StateModel.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ public List<State> loadStates(String sessionId, String gameId) throws SessionNot
5050
if ( gameModel.loadGame(gameId) == null ) {
5151
throw new GameNotFoundException(gameId);
5252
}
53-
Map<String, AttributeValue> eav = new HashMap<String, AttributeValue>();
54-
eav.put(":val1", new AttributeValue().withS(gameId));
53+
Map<String, AttributeValue> attributeValues = new HashMap<String, AttributeValue>();
54+
attributeValues.put(":val1", new AttributeValue().withS(gameId));
5555

56-
Map<String, String> ean = new HashMap<String, String>();
57-
ean.put("#key1", "game");
56+
Map<String, String> attributeNames = new HashMap<String, String>();
57+
attributeNames.put("#key1", "game");
5858

5959
DynamoDBQueryExpression<State> queryExpression = new DynamoDBQueryExpression<State>()
6060
.withIndexName("game-index")
61-
.withExpressionAttributeValues(eav)
62-
.withExpressionAttributeNames(ean)
61+
.withExpressionAttributeValues(attributeValues)
62+
.withExpressionAttributeNames(attributeNames)
6363
.withKeyConditionExpression("#key1 = :val1")
6464
.withConsistentRead(false);
6565

0 commit comments

Comments
 (0)