Skip to content

Commit 26230f7

Browse files
Fixed formatting issues
1 parent d3e5052 commit 26230f7

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/main/java/com/meilisearch/sdk/Index.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,6 @@ public TaskInfo resetEmbeddersSettings() throws MeilisearchException {
12961296
return this.settingsHandler.resetEmbedders(this.uid);
12971297
}
12981298

1299-
13001299
/**
13011300
* Compacts the database for this index to reclaim unused space
13021301
*
@@ -1306,8 +1305,8 @@ public TaskInfo resetEmbeddersSettings() throws MeilisearchException {
13061305
*/
13071306
public TaskInfo compact() throws MeilisearchException {
13081307
return this.config.httpClient.post(
1309-
new URLBuilder("/indexes").addSubroute(this.uid).addSubroute("/compact").getURL(),
1310-
null,
1311-
TaskInfo.class);
1308+
new URLBuilder("/indexes").addSubroute(this.uid).addSubroute("/compact").getURL(),
1309+
null,
1310+
TaskInfo.class);
13121311
}
13131312
}

src/test/java/com/meilisearch/integration/ClientTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,17 @@ public void testCompactWithDocuments() throws Exception {
352352
Index index = createEmptyIndex(indexUid, this.primaryKey);
353353

354354
TaskInfo addTask =
355-
index.addDocuments(
356-
"[{"
357-
+ "\"id\": 1,"
358-
+ "\"title\": \"Document1\","
359-
+ "\"description\": \"Test document 1\""
360-
+ "},"
361-
+ "{"
362-
+ "\"id\": 2,"
363-
+ "\"title\": \"Document2\","
364-
+ "\"description\": \"Test document 2\""
365-
+ "}]");
355+
index.addDocuments(
356+
"[{"
357+
+ "\"id\": 1,"
358+
+ "\"title\": \"Document1\","
359+
+ "\"description\": \"Test document 1\""
360+
+ "},"
361+
+ "{"
362+
+ "\"id\": 2,"
363+
+ "\"title\": \"Document2\","
364+
+ "\"description\": \"Test document 2\""
365+
+ "}]");
366366
index.waitForTask(addTask.getTaskUid());
367367

368368
TaskInfo compactTask = index.compact();

0 commit comments

Comments
 (0)