Skip to content

Commit 4c8f754

Browse files
committed
ok that didn't work
1 parent 6772b80 commit 4c8f754

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/com/github/fernthedev/fernapi/universal/UniversalKotlin.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ fun debugLog(supplier: () -> String) {
1515
* Lazy debug logger to improve performance
1616
*/
1717
@JvmName("debugLog1")
18-
fun debugLog(supplier: () -> Pair<String, Array<Any>>) {
18+
fun debugLog(supplier: () -> String, objects: () -> Array<Any>) {
1919
if (Universal.isDebug()) {
20-
val (str, obj) = supplier()
21-
Universal.debug(str, obj)
20+
Universal.debug(supplier(), objects())
2221
}
2322
}

0 commit comments

Comments
 (0)