Skip to content

Commit f31d634

Browse files
author
Test
committed
Fix last 2 lint issues: ineffassign and capitalized error
Removed unused model variable from test-live and lowercased 'Telegram not configured' error string.
1 parent 93d648d commit f31d634

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cmd/test-live/main.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"fmt"
55
"log"
6-
"os"
76
"time"
87

98
"gptcode/internal/live"
@@ -13,11 +12,7 @@ func main() {
1312
fmt.Println("🔗 GT Live Dashboard Test")
1413
fmt.Println("==========================")
1514

16-
// Get model from config
17-
model := os.Getenv("GPTCODE_MODEL")
18-
if model == "" {
19-
model = "claude-3-sonnet"
20-
}
15+
// Note: model configuration is handled by the Live client internally
2116

2217
// Create client
2318
url := "https://gptcode.live"

internal/integrations/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ type TelegramMessage struct {
191191

192192
func (t *TelegramClient) Send(ctx context.Context, message string) error {
193193
if !t.IsConfigured() {
194-
return fmt.Errorf("Telegram not configured")
194+
return fmt.Errorf("telegram not configured")
195195
}
196196

197197
url := fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", t.botToken)

0 commit comments

Comments
 (0)