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 label := field.Label
if field.Section != nil { if field.Section != nil {
sectionId := field.Section.Label sectionID := field.Section.Label
if sectionId == "" { if sectionID == "" {
sectionId = field.Section.ID sectionID = field.Section.ID
} }
if sectionId != "" { if sectionID != "" {
label = sectionId + "." + label label = sectionID + "." + label
} }
} }
df = append(df, label+field.Value) df = append(df, label+field.Value)