Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fripine committed Jan 5, 2025
1 parent ab8c4cd commit b1440ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gocq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func LoginInteract() {
log.Warnf("从文件 %s 读取本地版本信息文件出错.", versionFile)
os.Exit(0)
}
info, err := JsonParse(b)
info, err := JsParse(b)
if err != nil {
log.Warnf("从文件 %s 解析本地版本信息出错: %v", versionFile, err)
os.Exit(0)
Expand Down Expand Up @@ -517,7 +517,7 @@ func (p protocolLogger) Dump(data []byte, format string, arg ...any) {
_ = os.WriteFile(dumpFile, data, 0o644)
}

func JsonParse(js []byte) (*auth.AppInfo, error) {
func JsParse(js []byte) (*auth.AppInfo, error) {

Check failure on line 520 in cmd/gocq/main.go

View workflow job for this annotation

GitHub Actions / lint

exported: exported function JsParse should have comment or be unexported (revive)
trans := struct {
OS string `json:"Os"`
Kernel string `json:"Kernel"`
Expand Down

0 comments on commit b1440ce

Please sign in to comment.