nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.9k stars 639 forks source link

Formatting Issue #1137

Closed AndriiPetrovDev closed 2 years ago

AndriiPetrovDev commented 2 years ago

I have the latest version of SwiftFormat. And it removes last () in this string and .sorted() became .sorted. I have compilation error

                if currentProducts.map { $0.id ?? 0 }.sorted() != newProducts.map { $0.id ?? 0 }.sorted() {
                    self?.products.accept(newProducts)
                }
nicklockwood commented 2 years ago

@AndrewPetrov fixed in 0.49.4