diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-18 20:45:22 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-18 20:45:22 +0800 |
commit | 18706a6e8377d0e0061b3d29562287d718b70f36 (patch) | |
tree | 01a7ff7ff044a6d6e83ad4124479937cd7cba948 /fedauth.go | |
parent | gofumpt (diff) | |
download | forge-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.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |