Skip to content

Commit c246140

Browse files
committed
[utils] remove trailing whitespace after removing diag
1 parent 4d5844b commit c246140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/Utils/update-verify-tests/update-existing.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ func foobar() {
3535
func foo() {
3636
// expected-note@+1{{'a' declared here}}
3737
let a = 2 // expected-error@+1{{cannot find 'b' in scope; did you mean 'a'?}}
38-
b = a
38+
b = a
3939
}
4040

4141
func bar() {
4242
// expected-error@+1{{cannot find 'a' in scope}}
43-
a = 2
43+
a = 2
4444
}
4545

4646
func baz() {
4747
// expected-error@+3{{cannot find 'a' in scope}}
4848
// expected-error@+2{{cannot find 'a'}}
4949
// expected-note@+1{{'b' declared here}}
50-
let b = a; let c = a;
50+
let b = a; let c = a;
5151
}
5252

5353
func qux() {

utils/update_verify_tests/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def render(self):
5151
res = self.content.replace("{{DIAG}}", self.diag.render())
5252
if not res.strip():
5353
return ""
54-
return res
54+
return res.rstrip() + "\n"
5555

5656

5757
class Diag:

0 commit comments

Comments
 (0)