aboutsummaryrefslogtreecommitdiff
path: root/fedauth.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-18 20:45:22 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-18 20:45:22 +0800
commit18706a6e8377d0e0061b3d29562287d718b70f36 (patch)
tree01a7ff7ff044a6d6e83ad4124479937cd7cba948 /fedauth.go
parentgofumpt (diff)
downloadforge-18706a6e8377d0e0061b3d29562287d718b70f36.tar.gz
forge-18706a6e8377d0e0061b3d29562287d718b70f36.tar.zst
forge-18706a6e8377d0e0061b3d29562287d718b70f36.zip
Remove underscores from Go code, pt 2
Diffstat (limited to 'fedauth.go')
-rw-r--r--fedauth.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/fedauth.go b/fedauth.go
index e1fcfff..6687fe3 100644
--- a/fedauth.go
+++ b/fedauth.go
@@ -15,7 +15,7 @@ import (
"github.com/jackc/pgx/v5"
)
-func check_and_update_federated_user_status(ctx context.Context, user_id int, service, remote_username, pubkey string) (bool, error) {
+func fedauth(ctx context.Context, user_id int, service, remote_username, pubkey string) (bool, error) {
var err error
var resp *http.Response
matched := false
@@ -51,11 +51,11 @@ func check_and_update_federated_user_status(ctx context.Context, user_id int, se
return false, err
}
- line_split := strings.Split(line, " ")
- if len(line_split) < 2 {
+ lineSplit := strings.Split(line, " ")
+ if len(lineSplit) < 2 {
continue
}
- line = strings.Join(line_split[:2], " ")
+ line = strings.Join(lineSplit[:2], " ")
if line == pubkey {
matched = true