From 0f356843ce647e6417da17dd93aec1be730a9718 Mon Sep 17 00:00:00 2001 From: FabianAdrian Date: Tue, 7 May 2024 02:51:37 +0300 Subject: [PATCH] cleanup --- .../proxychat/common/locale/TranslationManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/java/fi/fabianadrian/proxychat/common/locale/TranslationManager.java b/common/src/main/java/fi/fabianadrian/proxychat/common/locale/TranslationManager.java index 7a42b6a..2f45c40 100644 --- a/common/src/main/java/fi/fabianadrian/proxychat/common/locale/TranslationManager.java +++ b/common/src/main/java/fi/fabianadrian/proxychat/common/locale/TranslationManager.java @@ -78,9 +78,7 @@ private void loadFromResourceBundle() { private void writeExampleTranslationsToDisk() { // Extract all key-value pairs from the ResourceBundle List lines = new ArrayList<>(); - this.defaultBundle.getKeys().asIterator().forEachRemaining(key -> { - lines.add(key + "=" + this.defaultBundle.getString(key)); - }); + this.defaultBundle.getKeys().asIterator().forEachRemaining(key -> lines.add(key + "=" + this.defaultBundle.getString(key))); Collections.sort(lines); try {