Skip to content

Commit

Permalink
add TODO to fix err context
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Aug 23, 2024
1 parent 5bfacf0 commit da135c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func errWrongNumberOfArguments(def TemplateName, method *ast.FuncType) error {
}

func checkArgument(method *ast.FuncType, argIndex int, exp ast.Expr, argType ast.Expr) error {
// TODO: rewrite to "cannot use 32 (untyped int constant) as string value in argument to strings.ToUpper"
arg := exp.(*ast.Ident)
switch arg.Name {
case TemplateNameScopeIdentifierHTTPRequest:
Expand Down

0 comments on commit da135c4

Please sign in to comment.