Commit aab8df3
Fix StringFormatTrivial: Replace String.format with string templates in WebSocketModule (#56114)
Summary:
Pull Request resolved: #56114
Fixed StringFormatTrivial lint warnings in WebSocketModule.kt.
Replaced trivial String.format calls with Kotlin string templates for better performance. String.format creates a new Formatter instance on each call, while string templates are compiled to simple concatenation.
changelog: [internal] internal
Reviewed By: alanleedev
Differential Revision: D96784739
fbshipit-source-id: a6636e9448a3611a9952eb57fff71e4ad174f8c31 parent b5b3982 commit aab8df3
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/websocket
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments