Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 2ed2607

Browse files
committed
lint correction
1 parent 8e802e6 commit 2ed2607

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

internal/generate/generate.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,10 @@ func (d *DaVinciGenerator) buildDataSingleFlow(flow davinci.Flow, parsedIntf map
184184

185185
reg := regexp.MustCompile(`^([a-zA-Z0-9-_]*)[[#]{2}.+]*$`)
186186

187+
variableName := ""
188+
187189
// Find the first match and capture groups
188190
matches := reg.FindStringSubmatch(variable.Name)
189-
190-
variableName := variable.Name
191-
192191
// Check if we have a match
193192
if len(matches) == 2 {
194193
// matches[0] is the full match

0 commit comments

Comments
 (0)