mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 20:13:50 +08:00
解决 lint 问题
This commit is contained in:
parent
2f536c42f8
commit
9c93ccb37b
@ -349,5 +349,5 @@ func GetCurrentPath() (string, error) {
|
||||
if i < 0 {
|
||||
return "", errors.New("system/path_error,Can't find '/' or '\\'")
|
||||
}
|
||||
return string(fpath[0 : i+1]), nil
|
||||
return fpath[0 : i+1], nil
|
||||
}
|
||||
|
@ -22,10 +22,10 @@ import (
|
||||
"github.com/Mrs4s/MiraiGo/utils"
|
||||
"github.com/gin-contrib/pprof"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/json-iterator/go"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/tidwall/gjson"
|
||||
"github.com/yinghau76/go-ascii-art"
|
||||
asciiart "github.com/yinghau76/go-ascii-art"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
@ -35,7 +35,7 @@ func Daemon() {
|
||||
}
|
||||
|
||||
log.Info("[PID] ", proc.Process.Pid)
|
||||
//pid写入到pid文件中,方便后续stop的时候kill
|
||||
// pid写入到pid文件中,方便后续stop的时候kill
|
||||
pidErr := savePid("go-cqhttp.pid", fmt.Sprintf("%d", proc.Process.Pid))
|
||||
if pidErr != nil {
|
||||
log.Errorf("save pid file error: %v", pidErr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user