mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-02 14:31:53 +08:00
优化代码
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"github.com/iwind/TeaGo/types"
|
||||
"gopkg.in/yaml.v3"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -75,7 +74,7 @@ func (this *Setup) Run() error {
|
||||
|
||||
// 执行SQL
|
||||
config := &dbs.Config{}
|
||||
configData, err := ioutil.ReadFile(Tea.ConfigFile("db.yaml"))
|
||||
configData, err := os.ReadFile(Tea.ConfigFile("db.yaml"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user