mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 12:40:12 +00:00
update
update: deps fix: sig waiting fix: watcher fix: nil pointer panic
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user