remove non-null assertion operator from std (part2) (#3927)

This commit is contained in:
Yusuke Sakurai 2020-02-09 05:15:59 +09:00 committed by GitHub
parent cdba5ab6fc
commit a4bb8bab44
11 changed files with 128 additions and 75 deletions

View file

@ -477,7 +477,7 @@ for (const t of testCases) {
if (t.Error) {
let err;
try {
actual = await readMatrix(new BufReader(new StringReader(t.Input!)), {
actual = await readMatrix(new BufReader(new StringReader(t.Input)), {
comma: comma,
comment: comment,
trimLeadingSpace: trim,
@ -490,7 +490,7 @@ for (const t of testCases) {
assert(err);
assertEquals(err.message, t.Error);
} else {
actual = await readMatrix(new BufReader(new StringReader(t.Input!)), {
actual = await readMatrix(new BufReader(new StringReader(t.Input)), {
comma: comma,
comment: comment,
trimLeadingSpace: trim,