Skip to content

Commit

Permalink
Merge pull request #242 from vil02/fix_ktlint_warnings
Browse files Browse the repository at this point in the history
style: fix some `ktlint` warnings
  • Loading branch information
rozPierog authored Mar 14, 2024
2 parents b828a6e + bb4354a commit 353f7d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun OutlinedNumbersField(
onValueChange(newValue.removePrefix("0"))
}
} else if (newValue.startsWith(".")) {
onValueChange("0${newValue}")
onValueChange("0$newValue")
} else if (newValue.isBlank()) {
onValueChange("0")
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/omelan/cofi/pages/RecipeEdit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fun RecipeEdit(
) {
derivedStateOf {
windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact ||
(configuration.screenHeightDp > configuration.screenWidthDp)
(configuration.screenHeightDp > configuration.screenWidthDp)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ fun TimerSettings(goBack: () -> Unit) {
},
navigationIcon = {
IconButton(onClick = goBack) {
Icon(imageVector = Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = null)
Icon(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
contentDescription = null,
)
}
},
scrollBehavior = appBarBehavior,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ class NumberUtilsKtTest : TestCase() {
assertEquals(entry.value, entry.key.safeToInt())
}
}

}

0 comments on commit 353f7d8

Please sign in to comment.