Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 7b6d579

Browse files
committed
Fix checkstyle error
1 parent e085d0c commit 7b6d579

File tree

1 file changed

+3
-1
lines changed
  • plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/model/customer

1 file changed

+3
-1
lines changed

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/model/customer/WCCustomerMapper.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class WCCustomerMapper @Inject constructor() {
122122
this?.trim()?.replace("\\s+".toRegex(), " ")?.substringBefore(" ") ?: ""
123123

124124
private fun String?.lastNameFromName(): String =
125-
this?.trim()?.replace("\\s+".toRegex(), " ")?.substringAfter(" ", "") ?: ""
125+
this?.trim()?.replace("\\s+".toRegex(), " ")?.substringAfter(
126+
" ", ""
127+
) ?: ""
126128

127129
}

0 commit comments

Comments
 (0)