Skip to content

Commit 6b75221

Browse files
committed
Move variable near the place it belongs
1 parent 967d010 commit 6b75221

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

311311
first := true
312312
for {
313-
var include string
314313
cache.ExpectFile(sourcePath)
315314

316315
includes := ctx.IncludeFolders
@@ -332,6 +331,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
332331
var preproc_err error
333332
var preproc_stderr []byte
334333

334+
var include string
335335
if unchanged && cache.valid {
336336
include = cache.Next().Include
337337
if first && ctx.Verbose {

0 commit comments

Comments
 (0)