refactor: use ARL initialism casing

This commit is contained in:
Mathis Maquenne
2026-07-30 11:13:13 +02:00
parent 44a57d5f3a
commit c2f60be18e
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
)
type Config struct {
ArlCookie string
ARLCookie string
OutputDir string
HomeDir string
}
@@ -47,7 +47,7 @@ func New() (*Config, error) {
}
return &Config{
ArlCookie: arl,
ARLCookie: arl,
OutputDir: outputDir,
HomeDir: homeDir,
}, nil
+2 -2
View File
@@ -31,8 +31,8 @@ func NewClient(ctx context.Context, appConfig *config.Config) (*Client, error) {
}
func resolveSession(ctx context.Context, appConfig *config.Config) (*Session, error) {
if appConfig.ArlCookie != "" {
return Authenticate(ctx, appConfig.ArlCookie)
if appConfig.ARLCookie != "" {
return Authenticate(ctx, appConfig.ARLCookie)
}
var session *Session
+1 -1
View File
@@ -71,7 +71,7 @@ func Authenticate(ctx context.Context, arlCookie string) (*Session, error) {
}
if res.Results.User.ID == 0 {
return nil, fmt.Errorf("invalid or expired arl cookie")
return nil, fmt.Errorf("invalid or expired ARL cookie")
}
opts := res.Results.User.Options