Closed calda closed 8 months ago
This PR fixes an issue where the redundantClosure rule could break the build if the redundantReturn rule was disabled, by leaving in return keywords that would no longer be valid outside of a closure context.
redundantClosure
redundantReturn
return
Fixes #1565.
Closing given https://github.com/nicklockwood/SwiftFormat/issues/1565#issuecomment-1793515768
This PR fixes an issue where the
redundantClosure
rule could break the build if theredundantReturn
rule was disabled, by leaving inreturn
keywords that would no longer be valid outside of a closure context.Fixes #1565.