Skip to content

Commit ec9aa1b

Browse files
committed
Move variable near the place it belongs
1 parent f493e2e commit ec9aa1b

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
@@ -330,7 +330,6 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
330330

331331
first := true
332332
for {
333-
var include string
334333
cache.ExpectFile(sourcePath)
335334

336335
includes := ctx.IncludeFolders
@@ -352,6 +351,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
352351
var preproc_err error
353352
var preproc_stderr []byte
354353

354+
var include string
355355
if unchanged && cache.valid {
356356
include = cache.Next().Include
357357
if first && ctx.Verbose {

0 commit comments

Comments
 (0)