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.
2 parents 547eeb4 + fda8b5c commit 1691699Copy full SHA for 1691699
Sources/swift-format/Subcommands/Format.swift
@@ -108,7 +108,6 @@ private func formatMain(
108
try bufferData.write(to: assumingFileURL, options: .atomic)
109
} else {
110
try formatter.format(source: source, assumingFileURL: assumingFileURL, to: &stdoutStream)
111
- stdoutStream.synchronizeFile()
112
}
113
} catch SwiftFormatError.fileNotReadable {
114
diagnosticEngine.diagnose(
@@ -122,7 +121,6 @@ private func formatMain(
122
121
return
123
124
stdoutStream.write(source)
125
126
127
128
let location = SourceLocationConverter(file: path, source: source).location(for: position)
0 commit comments