You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dialog?.let {
it.window?.let {
//do something with window
}
}
Here both dialog and window are nullable. So detekt should give error/warning to merge these two into one statement. Currently detekt does not detect this and we could add new rule to detect this behaviour to merge these two into one statement like below:
dialog?.window?.let {
//do something with window
}
}
Context
This would improve code readability as well as maintainability.
The text was updated successfully, but these errors were encountered:
Expected Behavior of the rule
Here both dialog and window are nullable. So detekt should give error/warning to merge these two into one statement. Currently detekt does not detect this and we could add new rule to detect this behaviour to merge these two into one statement like below:
Context
This would improve code readability as well as maintainability.
The text was updated successfully, but these errors were encountered: