Skip to content

Commit

Permalink
id -> funcName
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Oct 31, 2024
1 parent cf9a3fd commit e948f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnovm/pkg/gnolang/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -2471,8 +2471,8 @@ func evalStaticTypeOf(store Store, last BlockNode, x Expr) Type {
func getFunctionName(x Expr) string {
switch expr := x.(type) {
case *CallExpr:
if id, ok := expr.Func.(*NameExpr); ok {
return string(id.Name)
if funcName, ok := expr.Func.(*NameExpr); ok {
return string(funcName.Name)

Check warning on line 2475 in gnovm/pkg/gnolang/preprocess.go

View check run for this annotation

Codecov / codecov/patch

gnovm/pkg/gnolang/preprocess.go#L2463-L2475

Added lines #L2463 - L2475 were not covered by tests
}
}
return "<unknown function>"
Expand Down

0 comments on commit e948f68

Please sign in to comment.