Skip to content

Commit

Permalink
set vtype for newVar (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid authored and rghetia committed Jul 16, 2019
1 parent eed647d commit eba4b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func Register(name string, vtype Type, opts ...Option) Variable {
func newVar(name string, vtype Type, opts ...Option) Variable {
v := Variable{
Name: name,
Type: vtype,
}
for _, o := range opts {
v = o(v)
Expand Down

0 comments on commit eba4b51

Please sign in to comment.