fix linter warning

This commit is contained in:
Roberto Hidalgo 2023-11-25 20:36:15 -06:00
parent 37e2e6bb9b
commit d9863596a2

View File

@ -21,12 +21,12 @@ func Checksum(fields []*op.ItemField) string {
}
label := field.Label
if field.Section != nil {
sectionId := field.Section.Label
if sectionId == "" {
sectionId = field.Section.ID
sectionID := field.Section.Label
if sectionID == "" {
sectionID = field.Section.ID
}
if sectionId != "" {
label = sectionId + "." + label
if sectionID != "" {
label = sectionID + "." + label
}
}
df = append(df, label+field.Value)