2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 03:07:20 +08:00

fix: lint

This commit is contained in:
2026-01-14 03:29:35 +08:00
parent 39fb75a531
commit bcecec3756

View File

@@ -2,7 +2,7 @@ package data
import (
"encoding/json"
"fmt"
"errors"
"os"
"path/filepath"
"regexp"
@@ -56,7 +56,7 @@ func (r *templateRepo) Get(slug string) (*api.Template, error) {
}
}
return nil, fmt.Errorf(r.t.Get("template %s not found", slug))
return nil, errors.New(r.t.Get("template %s not found", slug))
}
// Callback 模版下载回调