EternallyAscend / GoToolkits

Found empty body in an if or else branch SCC-SA9003
Anti-pattern
Minor
2 years ago2 years old
52		} else {
53			err.Message = tea.String(tryErr.Error())
54		}
55		if !tea.BoolValue(util.Empty(err.Code)) && !tea.BoolValue(util.Empty(err.Message)) {56			// err 中含有 code 和 message 属性,可帮助开发定位问题
57		}
58
 7	context := &goDaemon.Context{}
 8	defer func(context *goDaemon.Context) {
 9		err := context.Release()
10		if err != nil {11		}
12	}(context)
13}