SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Fix StringFormatTrivial: Replace String.format with string templates in WebSocketModule (#56114)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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: a6636e9448a3611a9952eb57fff71e4ad174f8c3
D
David Vacca committed
aab8df30342c786a1279837da5f52dd58c2a4dcf
Parent: b5b3982
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/17/2026, 4:13:33 AM