refactor(reporter): refactoring TelegramWriter, GoogleChatWriter (#1628)

* style: remove unnecessary line break

* style: use regexp.MatchString instead of regexp.Match

* refactor(reporter): refactoring TelegramWriter, GoogleChatWriter
This commit is contained in:
MaineK00n
2023-04-20 11:53:31 +09:00
committed by GitHub
parent d4d33fc81d
commit fb904f0543
3 changed files with 5 additions and 7 deletions

View File

@@ -552,7 +552,6 @@ func parseRegistry(stdout, arch string) (osInfo, error) {
}
func detectOSName(osInfo osInfo) (string, error) {
osName, err := detectOSNameFromOSInfo(osInfo)
if err != nil {
return "", xerrors.Errorf("Failed to detect OS Name from OSInfo: %+v, err: %w", osInfo, err)