Chore: Change fmt.Errorf to errors.New when there is no formatting required (#58600)

Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
This commit is contained in:
Sasha Melentyev
2022-12-01 20:51:12 +01:00
committed by GitHub
parent fb98a97efa
commit f0adc69ada
5 changed files with 24 additions and 25 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package api
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
@@ -35,7 +36,7 @@ func TestGetPluginDashboards(t *testing.T) {
},
},
unexpectedErrors: map[string]error{
"boom": fmt.Errorf("BOOM"),
"boom": errors.New("BOOM"),
},
}