From 92652458704b1e9e3109f8cd976946cdab4973ba Mon Sep 17 00:00:00 2001 From: Sergio A Rodriguez <97699456+ser-io@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:24:39 -0400 Subject: [PATCH] Use os.Remove error. (#470) --- frontend/src/host_orchestrator/orchestrator/createcvdaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/host_orchestrator/orchestrator/createcvdaction.go b/frontend/src/host_orchestrator/orchestrator/createcvdaction.go index 919a4cda27..74e8ea45ca 100644 --- a/frontend/src/host_orchestrator/orchestrator/createcvdaction.go +++ b/frontend/src/host_orchestrator/orchestrator/createcvdaction.go @@ -436,7 +436,7 @@ func tempFilename(pattern string) (string, error) { return "", err } name := file.Name() - if os.Remove(name); err != nil { + if err := os.Remove(name); err != nil { return "", err } return name, nil