Skip to content

Commit

Permalink
fix import errors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed Jun 20, 2023
1 parent f1adcf5 commit e414837
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/api/apiutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package api

import (
"encoding/json"
"errors"
stderrors "errors"
"fmt"
"io"
Expand All @@ -27,14 +26,14 @@ type Error struct {
}

var (
ErrFileNotFound = errors.New("File not found")
ErrFileNotFound = stderrors.New("File not found")
ForbiddenErr error = &Error{
StatusCode: 403,
Err: errors.New("403 Forbidden"),
Err: stderrors.New("403 Forbidden"),
}
UnavailableErr error = &Error{
StatusCode: 503,
Err: errors.New("503 Service Unavailable"),
Err: stderrors.New("503 Service Unavailable"),
}
)

Expand Down

0 comments on commit e414837

Please sign in to comment.