fix: os.go/ExecCommand make error the last return value

This commit is contained in:
dudaodong committed 2022-01-17 16:57:38 +08:00
1 parent 764a6fe107
commit 261370e30d
6 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ func ContainLetter(str string) bool {
return containLetterRegexMatcher.MatchString(str)
}
// Is checks if the string is valid JSON
// IsJSON checks if the string is valid JSON
func IsJSON(str string) bool {
var js json.RawMessage
return json.Unmarshal([]byte(str), &js) == nil