Skip to content

Commit

Permalink
style: Improve S declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom5521 committed Sep 14, 2024
1 parent 4bea143 commit b78634a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions audio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ var assets embed.FS

var Mute bool

var S map[string]rl.Sound
var S = make(map[string]rl.Sound)

func Load() {
S = make(map[string]rl.Sound)

dirs, _ := assets.ReadDir("assets")
for _, d := range dirs {
file, _ := assets.ReadFile("assets/" + d.Name())
Expand Down

0 comments on commit b78634a

Please sign in to comment.