Skip to content

Commit da01309

Browse files
committed
docs(commun-utils): Fix alsoIfNull function documentation
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent f3275cb commit da01309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/common/src/main/kotlin/MiscUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fun <R> temporaryProperties(vararg properties: Pair<String, String?>, block: ()
6161
}
6262

6363
/**
64-
* Call [also] only if the receiver is null, e.g. for error handling, and return the receiver in any case.
64+
* Call [block] only if the receiver is null, e.g. for error handling, and return the receiver in any case.
6565
*/
6666
inline fun <T> T.alsoIfNull(block: (T) -> Unit): T = this ?: also(block)
6767

0 commit comments

Comments
 (0)