ci: format

This commit is contained in:
Barrett Ruth 2026-02-24 15:17:24 -05:00
parent 5055e4a36b
commit 6cb5ae9dda
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 8 additions and 11 deletions

View file

@ -1,4 +1,4 @@
minimum_pre_commit_version: '3.5.0' minimum_pre_commit_version: "3.5.0"
repos: repos:
- repo: https://github.com/JohnnyMorganz/StyLua - repo: https://github.com/JohnnyMorganz/StyLua

View file

@ -201,16 +201,13 @@ function M.authorize()
local sha_result = vim.system({ 'printf', '%s', code_verifier }, { text = true }):wait() local sha_result = vim.system({ 'printf', '%s', code_verifier }, { text = true }):wait()
local sha_pipe = vim local sha_pipe = vim
.system( .system({
{
'sh', 'sh',
'-c', '-c',
'printf "%s" "' 'printf "%s" "'
.. code_verifier .. code_verifier
.. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="', .. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="',
}, }, { text = true })
{ text = true }
)
:wait() :wait()
local code_challenge = sha_pipe.stdout or '' local code_challenge = sha_pipe.stdout or ''