We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4513448 commit 906b8a2Copy full SHA for 906b8a2
checkstyle/checks/ReturnCheck.hx
@@ -34,7 +34,9 @@ class ReturnCheck extends Check {
34
case FFun(fun):
35
if (fun.ret == null) {
36
_warnReturnTypeMissing(f.name, f.pos);
37
+ return;
38
}
39
40
default:
41
42
run.n
8 Bytes
test/ReturnCheckTest.hx
@@ -35,7 +35,7 @@ class ReturnCheckTest extends CheckTestCase {
assertEquals(msg, '');
msg = checkMessage(ReturnTests.TEST2, check);
- assertEquals(msg, 'Return type not specified when returning a value for function: test1');
+ assertEquals(msg, 'Return type not specified for function: test1');
msg = checkMessage(ReturnTests.TEST3, check);
assertEquals(msg, 'Return type not specified for function: test2');
0 commit comments