Skip to content

Commit 3aab032

Browse files
committed
Fixing default tag in compiler
1 parent c547799 commit 3aab032

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

compiler/compiler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err erro
3737
debugInfo: make(map[string]string),
3838
}
3939

40+
tag := conf.DefaultTag
4041
if config != nil {
4142
c.ntCache = &c.config.NtCache
43+
tag = config.Tag
4244
} else {
4345
c.ntCache = new(Cache)
4446
}
@@ -77,7 +79,7 @@ func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err erro
7779
c.functions,
7880
c.debugInfo,
7981
span,
80-
c.config.Tag,
82+
tag,
8183
)
8284
return
8385
}

0 commit comments

Comments
 (0)