Skip to content

Commit

Permalink
Reword comment and remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed May 10, 2024
1 parent 9c4a0c0 commit 9589b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/translations/TranslationFiles.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ object TranslationFiles {
}

if (!jsonVersion) {
// This feature is only supported by JSON translations
// This feature only supports JSON translation files
return null
}

val files = FileTypeIndex.getFiles(
if (jsonVersion) JsonFileType.INSTANCE else LangFileType,
JsonFileType.INSTANCE,
GlobalSearchScope.moduleScope(module),
).filter { getLocale(it) == TranslationConstants.DEFAULT_LOCALE }

Expand Down

0 comments on commit 9589b95

Please sign in to comment.