Skip to content

Commit

Permalink
fix: premature return
Browse files Browse the repository at this point in the history
  • Loading branch information
Anty0 committed Sep 19, 2024
1 parent af8606a commit 0ba71d7
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ class GenericStructuredProcessor(
private val format: ImportFormat,
) : ImportFileProcessor() {
override fun process() {
var data = data
var processedData = data
if (format.pluralsViaSuffixesParser != null) {
data =
processedData =
GenericSuffixedPluralsPreprocessor(
context = context,
data = data,
pluralsViaSuffixesParser = format.pluralsViaSuffixesParser,
).preprocess()
return
}
data.import("")
processedData.import("")
}

private fun Any?.import(key: String) {
Expand Down

0 comments on commit 0ba71d7

Please sign in to comment.