cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.32k stars 216 forks source link

Update AllTestResults.kt #1608

Closed GeorgCantor closed 2 months ago

GeorgCantor commented 2 months ago

Use of substringBeforeLast: This function simplifies the extraction of the package name by directly getting the substring before the last occurrence of ".". If there is no ".", it returns an empty string, which eliminates the need for a conditional check.