Skip to content

Commit 5fb6720

Browse files
committed
♻️ minor internal cleanup
1 parent 38c6232 commit 5fb6720

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/push-main-branch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ jobs:
1515
tag:
1616
uses: mindee/client-lib-actions/.github/workflows/tag-version.yml@main
1717
needs: build
18+
release:
19+
uses: mindee/client-lib-actions/.github/workflows/create-release.yml@main
20+
needs: tag

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
* :sparkles: add support for (FR) PayslipV1
7474
* :sparkles: add support for NutritionFactsLabelV1
7575
* :sparkles: add support for (US) HealthcareCardV1
76-
7776
### Fixes
7877
* :bug: fixed a bug that prevented longer decimals from appearing in the string representation of some objects
7978
* :bug: fixed a bug that caused non-table elements to unexpectedly appear truncated when printed to the console

src/main/java/com/mindee/http/MindeeHttpApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public final class MindeeHttpApi extends MindeeApi {
4242

4343
private static final ObjectMapper mapper = new ObjectMapper();
44-
private final Function<Endpoint, String> buildBaseUrl = this::buildUrl;
44+
private final Function<Endpoint, String> buildBaseUrl = this::buildProductUrl;
4545
private final Function<String, String> buildWorkflowBaseUrl = this::buildWorkflowUrl;
4646
/**
4747
* The MindeeSetting needed to make the api call.
@@ -336,7 +336,7 @@ private <ResponseT extends ApiResponse> MindeeHttpException getHttpError(
336336
return new MindeeHttpException(statusCode, message, details, errorCode);
337337
}
338338

339-
private String buildUrl(Endpoint endpoint) {
339+
private String buildProductUrl(Endpoint endpoint) {
340340
return this.mindeeSettings.getBaseUrl()
341341
+ "/products/"
342342
+ endpoint.getAccountName()

src/main/java/com/mindee/input/LocalInputSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public boolean hasSourceText() {
5656
public void compress(
5757
Integer quality, Integer maxWidth, Integer maxHeight,
5858
Boolean forceSourceText, Boolean disableSourceText
59-
)
60-
throws IOException {
59+
) throws IOException {
6160
if (isPdf()) {
6261
this.file = PdfCompressor.compressPdf(this.file, quality, forceSourceText, disableSourceText);
6362
} else {

src/main/java/com/mindee/input/LocalResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class LocalResponse {
2727
* Load from an {@link InputStream}.
2828
* @param input will be decoded as UTF-8.
2929
*/
30-
public LocalResponse(InputStream input) throws IOException {
30+
public LocalResponse(InputStream input) {
3131
this.file = this.getBytes(
3232
new BufferedReader(new InputStreamReader(input, StandardCharsets.UTF_8))
3333
.lines()

0 commit comments

Comments
 (0)