update: deps
fix: sig waiting
fix: watcher
fix: nil pointer panic
This commit is contained in:
Yuzuki616
2025-04-13 17:31:18 +09:00
parent c8d14af968
commit 9206546063
8 changed files with 82 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ func New(path string) *Conf {
}
func (c *Conf) Load(data []byte) error {
if len(data) >= 0 {
if len(data) > 0 {
err := json.Unmarshal(data, c)
if err != nil {
return fmt.Errorf("decode json error: %w", err)