Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington committed Nov 12, 2020
1 parent b38506a commit 67fed59
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/query/graphite/native/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ func (c *compiler) compileFunctionCall(fname string, nextToken *lexer.Token) (*f
}

argTypes := fn.in
argTypesN := len(fn.in)
argTypesRequiredN := argTypesN
argTypesRequired := len(fn.in)
if fn.variadic {
// Variadic can avoid specifying the last arg.
argTypesRequiredN--
argTypesRequired--
}
var args []funcArg

Expand Down Expand Up @@ -212,7 +211,7 @@ func (c *compiler) compileFunctionCall(fname string, nextToken *lexer.Token) (*f
}

// all required argument types should be filled with values now
if len(args) < argTypesRequiredN {
if len(args) < argTypesRequired {
variadicComment := ""
if fn.variadic {
variadicComment = "at least "
Expand Down

0 comments on commit 67fed59

Please sign in to comment.