Skip to content

Commit 6e3eeb6

Browse files
authored
Merge pull request #10891 from xedin/note-flush-cleanup
2 parents 1e043ab + 9bfee4e commit 6e3eeb6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Sema/TypeCheckError.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,11 +1048,8 @@ class Context {
10481048
if (reason.getKind() != PotentialReason::Kind::CallThrows)
10491049
return;
10501050

1051-
TC.diagnose(loc, diag::note_forgot_try).fixItInsert(loc, "try ").flush();
1052-
TC.diagnose(loc, diag::note_error_to_optional)
1053-
.fixItInsert(loc, "try? ")
1054-
.flush();
1055-
1051+
TC.diagnose(loc, diag::note_forgot_try).fixItInsert(loc, "try ");
1052+
TC.diagnose(loc, diag::note_error_to_optional).fixItInsert(loc, "try? ");
10561053
TC.diagnose(loc, diag::note_disable_error_propagation)
10571054
.fixItInsert(loc, "try! ");
10581055
}

0 commit comments

Comments
 (0)