Quick splash util tweak

This commit is contained in:
Ampflower 🌺 2025-03-11 23:44:58 -07:00
parent 88b7aa5f7c
commit 9342223e58
No known key found for this signature in database
GPG Key ID: FC0397C90D508D7F

View File

@ -61,7 +61,10 @@ public final class SplashUtil {
public static List<String> prepare(ResourceManager manager) {
try (final var reader = manager.openAsReader(joySplashes)) {
return Stream.concat(reader.lines(), contributors.stream()).toList();
return Stream.concat(
reader.lines().map(String::trim).filter(str -> !str.isEmpty()),
contributors.stream()
).toList();
} catch (IOException ioe) {
logger.warn("Could not read Joy splashes", ioe);
}