From 18706a6e8377d0e0061b3d29562287d718b70f36 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 18 Mar 2025 20:45:22 +0800 Subject: Remove underscores from Go code, pt 2 --- fedauth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fedauth.go') 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 -- cgit v1.2.3