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

Commit 651e2b9

Browse files
committed
Fix checkstyle error
1 parent 7b6d579 commit 651e2b9

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ 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(
126-
" ", ""
127-
) ?: ""
125+
this?.trim()?.replace("\\s+".toRegex(), " ")?.substringAfter(" ", "") ?: ""
128126

129127
}

0 commit comments

Comments
 (0)