pkg/api/errors.go
Function writeDataStoreError
has 6 return statements (exceeds 4 allowed). Open
Open
func writeDataStoreError(w http.ResponseWriter, err error) {
if errors.Is(err, datastore.ErrNotFound) {
writeError(w, &Error{
Code: "resource_not_found",
Message: "requested resource is not found",
Function writeFileStoreError
has 5 return statements (exceeds 4 allowed). Open
Open
func writeFileStoreError(w http.ResponseWriter, err error) {
if errors.Is(err, filestore.ErrNotFound) {
writeError(w, &Error{
Code: "resource_not_found",
Message: "filesystem path is not found",