# AstGen: simplify function return type expressions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7e98b047ddc51062a32cbf2fb852d38e5023886c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7e98b047ddc51062a32cbf2fb852d38e5023886c

Requested commit: 7e98b047ddc51062a32cbf2fb852d38e5023886c

Commit: 7e98b047ddc51062a32cbf2fb852d38e5023886c

Tree: 17e115e890f3e24dd710eb6621a097d28610a490

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: simplify function return type expressions

This check for primitives is already handled by the generic logic that
checks if the body ends up being empty. I kept this commit in the git
history in case we ever want that nodePrimitive function again in the
future, it might be useful.

```

## Parents

- [9da3a058d82573efeaf12fe61ab6a312649175ec](https://git.cafe/gitcafe/zig/commit/9da3a058d82573efeaf12fe61ab6a312649175ec?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7e98b047ddc51062a32cbf2fb852d38e5023886c?format=markdown)
