Skip to content

Commit

Permalink
Address lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
op committed May 10, 2024
1 parent ab3be4f commit 314039f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: ["ubuntu-22.04"]
runs-on: ubuntu-22.04

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion cmd/gallery/gallery.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ func main() {

for _, t := range themes.Themes {
for _, v := range t.Variants {

execute := fmt.Sprintf(
`build/redlog -theme "%s" -variant "%s"`,
t.Name, v.Name,
)
filename := strings.ToLower(fmt.Sprintf("%s-%s.svg", t.Name, v.Name))
output := filepath.Join("assets", filename)

// #nosec G204
cmd := exec.Command(
"freeze",
"--background", v.Background,
Expand Down
2 changes: 1 addition & 1 deletion cmd/redlog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func writeLog(t logtheme.Theme, v logtheme.Variant) {

num := 0
l := log.NewWithOptions(os.Stderr, log.Options{
TimeFunction: func(t time.Time) time.Time {
TimeFunction: func(_ time.Time) time.Time {
num = num + 1
return time.Unix(1234567+int64(math.Pow10(num)), 0)
},
Expand Down

0 comments on commit 314039f

Please sign in to comment.