-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMPTY_BLOCK_STRUCTURE_ERROR shouldn't trigger on empty lambdas #796
Labels
bug
Something isn't working
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sometimes empty lambda can be used as a function that does nothing:
or empty function in implementation of functional interface:
Diktat shouldn't issue a warning in these cases, because they are valid and can't be done differentlty. Also, kotlin copiler warns that
Unit
is redundant in{ Unit }
.Environment information
The text was updated successfully, but these errors were encountered: