Skip to content

Commit

Permalink
LPS-205214 Don't break test case for testLanguageKeysContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ling-alan-huang authored and brianchandotcom committed Jan 7, 2024
1 parent 26da253 commit 7d96982
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader;
import com.liferay.portal.kernel.io.unsync.UnsyncStringReader;
import com.liferay.source.formatter.util.SourceFormatterUtil;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -32,7 +33,10 @@ protected String doProcess(
String fileName, String absolutePath, String content)
throws IOException {

if (!fileName.endsWith("/content/Language.properties")) {
if (!fileName.endsWith("/content/Language.properties") ||
absolutePath.contains(
SourceFormatterUtil.SOURCE_FORMATTER_TEST_PATH)) {

return content;
}

Expand Down

0 comments on commit 7d96982

Please sign in to comment.