simplify json format

This commit is contained in:
filifa 2024-09-03 22:25:40 -05:00
parent 4a9b17f4ed
commit e0c4715cd5
1 changed files with 2 additions and 5 deletions

View File

@ -28,10 +28,7 @@ import (
var preset string
var scriptPath string
type script struct {
Presets []string
Times []float64
}
type script []string
func (s *script) load(path string) error {
f, err := os.Open(path)
@ -54,7 +51,7 @@ func getPresets() []string {
if scriptPath != "" {
var s script
s.load(scriptPath)
presets = s.Presets
presets = s
}
return presets