Skip to content

Commit

Permalink
refactor: Address Go staticcheck warnings in non-GTK libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Felicitas Pojtinger <[email protected]>
  • Loading branch information
pojntfx committed Jul 25, 2024
1 parent a45b7ef commit f042a0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion internal/components/controls.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func OpenControlsWindow(

app.AddWindow(&window.Window)

s := make(chan os.Signal)
s := make(chan os.Signal, 1)
signal.Notify(s, os.Interrupt, syscall.SIGTERM)
go func() {
<-s
Expand Down
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ package main

import (
"context"
"math/rand"
"net"
"os"
"path/filepath"
"strings"
"time"

"github.com/diamondburned/gotk4-adwaita/pkg/adw"
"github.com/diamondburned/gotk4/pkg/gdk/v4"
Expand Down Expand Up @@ -123,8 +121,6 @@ func main() {
}
addr.Port = port

rand.Seed(time.Now().UnixNano())

if err := os.MkdirAll(settings.String(resources.GSchemaStorageKey), os.ModePerm); err != nil {
panic(err)
}
Expand Down

0 comments on commit f042a0c

Please sign in to comment.