Skip to content

Commit 8fccf4b

Browse files
committed
Lint
1 parent 6757fe3 commit 8fccf4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/execute/testsys_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ func (s *testSys) ensureLibPathExists(path string) {
118118
s.fs.defaultLibs = collections.NewSetWithSizeHint[string](tsoptions.LibFilesSet.Len() + len(tsoptions.TargetToLibMap()) + 1)
119119
}
120120
s.fs.defaultLibs.Add(path)
121-
s.TestFS().WriteFile(path, tscDefaultLibContent, false)
121+
err := s.TestFS().WriteFile(path, tscDefaultLibContent, false)
122+
if err != nil {
123+
panic("Failed to write default library file: " + err.Error())
124+
}
122125
}
123126
}
124127

0 commit comments

Comments
 (0)