Skip to content

Commit 8dba4a4

Browse files
committed
Simplify the code in "MdFab.kt" even more by removing the '?'s
1 parent 514528d commit 8dba4a4

File tree

1 file changed

+3
-3
lines changed
  • compose-html-material3/src/jsMain/kotlin/com/huanshankeji/compose/html/material3

1 file changed

+3
-3
lines changed

compose-html-material3/src/jsMain/kotlin/com/huanshankeji/compose/html/material3/MdFab.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ https://material-web.dev/components/fab/stories/
1111
*/
1212

1313
fun <TElement : Element> SimplifiedTagElement(
14-
content: (ElementScope<TElement>.() -> Unit)?
14+
content: (ElementScope<TElement>.() -> Unit)
1515
) {
1616
TODO()
1717
}
1818

1919
class MdFabScope(val elementScope: ElementScope<HTMLElement>)
2020

2121
private fun SimplifiedMdFab(
22-
content: (MdFabScope.() -> Unit)?
22+
content: (MdFabScope.() -> Unit)
2323
) =
24-
SimplifiedTagElement(content?.let {
24+
SimplifiedTagElement(content.let {
2525
{ MdFabScope(this).it() }
2626
})

0 commit comments

Comments
 (0)