Skip to content

Commit d54951c

Browse files
author
Farhan Arshad
committed
fix: detekt warnings
1 parent c32053c commit d54951c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

core/src/main/java/org/openedx/core/ui/ComposeCommon.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,8 +1080,10 @@ fun BackBtn(
10801080
tint: Color = MaterialTheme.appColors.primary,
10811081
onBackClick: () -> Unit,
10821082
) {
1083-
IconButton(modifier = modifier.testTag("ib_back"),
1084-
onClick = { onBackClick() }) {
1083+
IconButton(
1084+
modifier = modifier.testTag("ib_back"),
1085+
onClick = { onBackClick() }
1086+
) {
10851087
Icon(
10861088
painter = painterResource(id = R.drawable.core_ic_back),
10871089
contentDescription = stringResource(id = R.string.core_accessibility_btn_back),

course/src/main/java/org/openedx/course/presentation/ui/CourseUI.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,10 @@ fun CourseSubSectionItem(
794794
MaterialTheme.appColors.onSurface
795795
}
796796
val due by rememberSaveable {
797-
mutableStateOf(block.due?.let { TimeUtils.formatToString(context, it, useRelativeDates) }
798-
?: "")
797+
mutableStateOf(
798+
block.due?.let { TimeUtils.formatToString(context, it, useRelativeDates) }
799+
?: ""
800+
)
799801
}
800802
val isAssignmentEnable =
801803
!block.isCompleted() && block.assignmentProgress != null && due.isNotEmpty()

0 commit comments

Comments
 (0)