Skip to content

Commit 984e551

Browse files
Code review fixes
1 parent 7abf3c7 commit 984e551

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/com/github/stickerifier/stickerify/media/MediaHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ private static boolean isFileSizeLowerThan(File file, long threshold) throws Fil
244244

245245
/**
246246
* Checks if passed-in image is already compliant with Telegram's requisites.
247-
* If so, conversion won't take place and no file will be returned to the user.
248247
*
249248
* @param image the image to check
250249
* @param mimeType the MIME type of the file

src/main/java/com/github/stickerifier/stickerify/process/ProcessHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public final class ProcessHelper {
1919

2020
/**
2121
* Executes passed-in command and ensures it completed successfully.
22-
* Concurrency is limited by a process-wide semaphore sized by the CONCURRENT_PROCESSES
23-
* environment variable (default 4).
22+
* Concurrency is limited by a process-wide semaphore sized by the {@code CONCURRENT_PROCESSES}
23+
* environment variable (defaults to 4).
2424
*
2525
* @param command the command to be executed
2626
* @return the merged stdout/stderr of the command, split by lines
@@ -61,7 +61,7 @@ public static List<String> executeCommand(final String... command) throws Proces
6161
throw new ProcessException("The command {} exited with code {}\n{}", command[0], exitCode, lines);
6262
}
6363

64-
return List.copyOf(output);
64+
return output;
6565
} catch (IOException e) {
6666
throw new ProcessException(e);
6767
} finally {

0 commit comments

Comments
 (0)