This can be simplified to

```
modules.push(function ($provide) {
```

since the return value inside of `forEach` is ignored and I believe we only care about the side effect in this case anyway.