Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

testNext failures in CI on master: return-undefined #4812

Closed
JoshuaKGoldberg opened this issue Jul 27, 2019 · 0 comments · Fixed by #4826
Closed

testNext failures in CI on master: return-undefined #4812

JoshuaKGoldberg opened this issue Jul 27, 2019 · 0 comments · Fixed by #4826

Comments

@JoshuaKGoldberg
Copy link
Contributor

Another one of these! 😭

https://circleci.com/gh/JoshuaKGoldberg/tslint/1694?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

test/rules/return-undefined/test.ts.lint: Failed!
+ Expected (from .lint file)
- Actual (from TSLint)

...

  declare function f<T>(action: () => T | undefined): void;
  f(() => { return undefined; });
+           ~~~~~~~~~~~~~~~~~     [`void` function should use `return;`, not `return undefined;`.]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant