Skip to content

Commit c967c7e

Browse files
authored
[clang-format][NFC] Remove an else after a return statement (#94548)
1 parent 2d65097 commit c967c7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,7 @@ static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) {
509509
if (OutputXML || DryRun) {
510510
if (DryRun)
511511
return emitReplacementWarnings(Replaces, AssumedFileName, Code);
512-
else
513-
outputXML(Replaces, FormatChanges, Status, Cursor, CursorPosition);
512+
outputXML(Replaces, FormatChanges, Status, Cursor, CursorPosition);
514513
} else {
515514
IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem(
516515
new llvm::vfs::InMemoryFileSystem);

0 commit comments

Comments
 (0)