From 45b6a08980695ca160388bcb2e5c6e910375ff06 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 31 May 2024 02:02:06 +0200 Subject: [PATCH] refactor: Name and comment variable properly --- .../customclients/boostforreddit/api/SpoofClientPatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt index 27cbaf88c..b5d4f7f75 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt @@ -25,12 +25,12 @@ object SpoofClientPatch : BaseSpoofClientPatch( } override fun Set.patchUserAgent(context: BytecodeContext) { - // Use a random user agent. - val randomName = (0..100000).random() + // Use a random number as the platform in the user agent string. + val platformName = (0..100000).random() first().mutableMethod.addInstructions( 1, - "const-string v3, \"$randomName\"", + "const-string v3, \"$platformName\"", ) } }