Skip to content

Commit 2d7cad5

Browse files
committed
Reformat
1 parent 52db096 commit 2d7cad5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

core/src/integration-test/java/com/scalar/db/storage/dynamo/DynamoPermissionTestUtils.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ private Optional<String> getAttachedPolicyArn(String userName, String policyName
103103
client
104104
.listAttachedUserPolicies(
105105
ListAttachedUserPoliciesRequest.builder().userName(userName).build())
106-
.attachedPolicies()
107-
.stream()
106+
.attachedPolicies().stream()
108107
.filter(policy -> policy.policyName().equals(policyName))
109108
.findFirst()
110109
.orElse(null);
@@ -123,10 +122,8 @@ private String createNewPolicy() {
123122
}
124123

125124
private void deleteStalePolicyVersions(String policyArn) {
126-
client
127-
.listPolicyVersions(ListPolicyVersionsRequest.builder().policyArn(policyArn).build())
128-
.versions()
129-
.stream()
125+
client.listPolicyVersions(ListPolicyVersionsRequest.builder().policyArn(policyArn).build())
126+
.versions().stream()
130127
.filter(version -> !version.isDefaultVersion())
131128
.forEach(
132129
version ->

integration-test/src/main/java/com/scalar/db/api/DistributedStorageAdminPermissionIntegrationTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void beforeAll() throws Exception {
7272
// Initialize the admin for normal user
7373
StorageFactory factoryForNormalUser = StorageFactory.create(propertiesForNormalUser);
7474
adminForNormalUser = factoryForNormalUser.getStorageAdmin();
75-
75+
7676
// Create the namespace and table
7777
adminForRootUser.createNamespace(NAMESPACE1, true, getCreationOptions());
7878
adminForRootUser.createTable(NAMESPACE1, TABLE1, TABLE_METADATA, true, getCreationOptions());

0 commit comments

Comments
 (0)