Run gosimple against codebase (#12928)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d7649fbf31
Коммит
7a665aacdd
@@ -41,7 +41,7 @@ func parseLogMessage(msg string) (result LogEntry, err error) {
|
||||
} else {
|
||||
d, ok := token.(json.Delim)
|
||||
if !ok || d != '{' {
|
||||
return result, errors.New(fmt.Sprintf("input is not a JSON object, found: %v", token))
|
||||
return result, fmt.Errorf("input is not a JSON object, found: %v", token)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ func parseLogMessage(msg string) (result LogEntry, err error) {
|
||||
} else {
|
||||
d, ok := token.(json.Delim)
|
||||
if !ok || d != '}' {
|
||||
return result, errors.New(fmt.Sprintf("failed to read '}', read: %v", token))
|
||||
return result, fmt.Errorf("failed to read '}', read: %v", token)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user