fix: Resolve playwright function deprecations and io/ioutil function deprecations.

This commit is contained in:
2024-09-24 15:13:36 -05:00
parent 1869dae89a
commit 333b9a366c
5 changed files with 280 additions and 270 deletions

View File

@@ -45,10 +45,10 @@ scrape:
}
defer os.Remove(tmpfile.Name())
if _, err := tmpfile.Write(content); err != nil {
if _, err = tmpfile.Write(content); err != nil {
t.Fatalf("Failed to write to temp file: %v", err)
}
if err := tmpfile.Close(); err != nil {
if err = tmpfile.Close(); err != nil {
t.Fatalf("Failed to close temp file: %v", err)
}