Skip to content

Commit

Permalink
fix(syncforreddit/change-oauth-client-id): trim whitespace from OAuth…
Browse files Browse the repository at this point in the history
… string (#2402)

This solves patching errors, when the string includes whitespace
  • Loading branch information
PalmDevs authored Jun 12, 2023
1 parent 306f996 commit 2afea71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
""".trimIndent()

return PatchResultError(error)
}.let { clientId = it.readText() }
}.let { clientId = it.readText().trim() }
}

GetAuthorizationStringFingerprint.result?.also { result ->
Expand Down Expand Up @@ -96,4 +96,4 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
)
)
}
}
}

0 comments on commit 2afea71

Please sign in to comment.