Skip to content

Commit 21a6969

Browse files
committed
Fix lint errors and restyle Material docs theme
1 parent 56af5cd commit 21a6969

5 files changed

Lines changed: 20 additions & 19 deletions

File tree

internal/cache/local.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,11 @@ func (lc *LocalCache) withFlock(fn func() error) error {
377377
if err := flock(lockFile); err != nil {
378378
return fmt.Errorf("acquiring file lock: %w", err)
379379
}
380-
defer funlock(lockFile)
380+
defer func() {
381+
if err := funlock(lockFile); err != nil {
382+
slog.Warn("failed to release cache file lock", "error", err)
383+
}
384+
}()
381385

382386
return fn()
383387
}

internal/cache/s3.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"io"
88
"log/slog"
99
"strconv"
10-
"sync"
1110
"sync/atomic"
1211
"time"
1312

@@ -47,7 +46,6 @@ type S3CacheConfig struct {
4746
// additional mutex for internal state like hit/miss counters.
4847
type S3Cache struct {
4948
cfg S3CacheConfig
50-
mu sync.Mutex // guards nothing mutable beyond atomic counters; reserved for future use
5149

5250
hitCount atomic.Int64
5351
missCount atomic.Int64

internal/cli/register.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ func splitPath(rawURL string) []string {
209209
// isAuthError returns true if the error represents a 401 or 403 response
210210
// from the GitHub API.
211211
func isAuthError(err error) bool {
212-
type statusCoder interface {
213-
Error() string
214-
}
215-
// Check for *github.APIError by inspecting the error chain.
216-
type apiErr interface {
217-
Error() string
218-
}
219212
// Walk the error chain looking for an APIError with an auth status code.
220213
current := err
221214
for current != nil {

internal/runner/manager.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
// One Manager runs per process.
2424
type Manager struct {
2525
cfg *config.Config
26-
cfgMu sync.RWMutex // Protects cfg during hot reload.
2726
pools []*Pool
2827
metrics *metrics.Metrics
2928
logger *slog.Logger

mkdocs.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,28 @@ repo_url: https://github.com/nficano/github-runner
77

88
theme:
99
name: material
10+
font:
11+
text: IBM Plex Sans
12+
code: JetBrains Mono
1013
palette:
11-
- scheme: default
12-
primary: deep purple
13-
accent: purple
14+
- media: "(prefers-color-scheme: light)"
15+
scheme: default
16+
primary: teal
17+
accent: amber
1418
toggle:
15-
icon: material/brightness-7
19+
icon: material/weather-night
1620
name: Switch to dark mode
17-
- scheme: slate
18-
primary: deep purple
19-
accent: purple
21+
- media: "(prefers-color-scheme: dark)"
22+
scheme: slate
23+
primary: cyan
24+
accent: lime
2025
toggle:
21-
icon: material/brightness-4
26+
icon: material/weather-sunny
2227
name: Switch to light mode
2328
features:
2429
- content.code.copy
30+
- navigation.tabs
31+
- navigation.instant
2532
- navigation.sections
2633
- navigation.expand
2734
- navigation.top

0 commit comments

Comments
 (0)