style: 优化注释

This commit is contained in:
TsMask
2024-09-19 11:45:38 +08:00
parent f5b6e122b3
commit e59f666541
2 changed files with 4 additions and 6 deletions

View File

@@ -28,8 +28,7 @@ func UDMImportAuth(udmIP string, data map[string]any) (string, error) {
}
// 序列化结果
err = json.Unmarshal(resBytes, &resData)
if err != nil {
if err = json.Unmarshal(resBytes, &resData); err != nil {
logger.Errorf("UDMImportAuth Unmarshal %s", err.Error())
return "", err
}