Skip to content

Commit c1558f1

Browse files
committed
fix conflicts
1 parent 01ac8a5 commit c1558f1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

metadata/report/nacos/report.go

+7-10
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,15 @@ func (n *nacosMetadataReport) RegisterServiceAppMapping(key string, group string
244244
DataId: key,
245245
Group: group,
246246
})
247-
if err != nil {
248-
return err
249-
}
250-
oldApps := strings.Split(oldVal, constant.CommaSeparator)
251-
if len(oldApps) > 0 {
252-
for _, app := range oldApps {
253-
if app == value {
254-
return nil
247+
if oldVal != "" {
248+
oldApps := strings.Split(oldVal, constant.CommaSeparator)
249+
if len(oldApps) > 0 {
250+
for _, app := range oldApps {
251+
if app == value {
252+
return nil
253+
}
255254
}
256255
}
257-
}
258-
if oldVal != "" {
259256
value = oldVal + constant.CommaSeparator + value
260257
}
261258
return n.storeMetadata(vo.ConfigParam{

0 commit comments

Comments
 (0)