Skip to content

Commit 977b63b

Browse files
committed
fix: vet issues
1 parent 385dfae commit 977b63b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

examples/cmd/markdownRenderer/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package main
55
import (
66
"context"
77
"flag"
8-
"fmt"
98
"log"
109
"log/slog"
1110
"os"
@@ -269,7 +268,6 @@ func main() {
269268
// capacity (remember, higher priority numbers mean lower priority).
270269
cEnforcer, err := agent.Concurrencies(concurrencyMap, concurrencyMap, []int64{0, 1})
271270
if err != nil {
272-
err = fmt.Errorf(err.Error())
273271
return
274272
}
275273

pkg/rscache/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (o *fileCache) Get(ctx context.Context, resolver ResolverSpec) (value *Cach
300300
return
301301
} else {
302302
err = fmt.Errorf("error: FileCache reported address '%s' complete, but item was not found in cache", address)
303-
slog.Debug(fmt.Sprintf(err.Error()))
303+
slog.Debug(err.Error())
304304
return
305305
}
306306
}

pkg/rselection/impls/pgx/leader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (p *PgxLeader) lead(ctx context.Context, pingTick, sweepTick <-chan time.Ti
179179
case vCh := <-p.taskHandler.Verify():
180180
p.verify(vCh)
181181
case <-logTickCh:
182-
slog.Debug(fmt.Sprintf(p.info()))
182+
slog.Debug(p.info())
183183
}
184184
}
185185
}

pkg/rsqueue/queue/work.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ func (a *OptionalRecurser) OptionallyRecurse(ctx context.Context, run func()) {
8888
if allowed == nil {
8989
msg := fmt.Sprintf("Work with type %d attempted recursion without being marked for recursion", r.WorkType)
9090
if a.fatalRecurseCheck {
91-
log.Fatalf(msg)
91+
log.Fatal(msg)
9292
} else {
93-
log.Printf(msg)
93+
log.Println(msg)
9494
}
9595
}
9696

0 commit comments

Comments
 (0)