Skip to content

Commit e3fbe9a

Browse files
committed
Move variable near the place it belongs
1 parent 03d9873 commit e3fbe9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

legacy/builder/container_find_includes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFileQu
333333

334334
first := true
335335
for {
336-
var include string
337336
cache.ExpectFile(sourcePath)
338337

339338
includes := ctx.IncludeFolders
@@ -355,6 +354,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFileQu
355354
var preproc_err error
356355
var preproc_stderr []byte
357356

357+
var include string
358358
if unchanged && cache.valid {
359359
include = cache.Next().Include
360360
if first && ctx.Verbose {

0 commit comments

Comments
 (0)