Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koho committed Oct 23, 2024
1 parent 8a268e5 commit d515158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/frpmgr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func fatal(v ...interface{}) {
}

func info(title string, format string, v ...interface{}) {
windows.MessageBox(0, windows.StringToUTF16Ptr(fmt.Sprintf(format, v...)), windows.StringToUTF16Ptr(title), windows.MB_ICONINFORMATION)
windows.MessageBox(0, windows.StringToUTF16Ptr(i18n.Sprintf(format, v...)), windows.StringToUTF16Ptr(title), windows.MB_ICONINFORMATION)
}

var (
Expand Down
3 changes: 2 additions & 1 deletion ui/proxyview.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ func (pv *ProxyView) onClipboardImport() {
} else if strings.HasPrefix(text, "[") {
proxy, err = config.UnmarshalProxyFromIni([]byte(text))
} else {
err = fmt.Errorf(i18n.Sprintf("This feature only supports text in INI or TOML format."))
showErrorMessage(pv.Form(), "", i18n.Sprintf("This feature only supports text in INI or TOML format."))
return
}
if err != nil {
showError(err, pv.Form())
Expand Down

0 comments on commit d515158

Please sign in to comment.