Skip to content

Commit dc2feb9

Browse files
committed
Move variable inside if statement
1 parent fc43cf0 commit dc2feb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blobstore/blobhandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ func (bh *BlobHandler) PingWithAuth(c echo.Context) error {
310310

311311
func (bh *BlobHandler) GetS3ReadPermissions(c echo.Context, bucket string) ([]string, bool, int, error) {
312312
permissions, fullAccess, err := bh.GetUserS3ReadListPermission(c, bucket)
313-
httpStatus := http.StatusInternalServerError
314313
if err != nil {
315314
//TEMP solution before error library is implimented and string check ups become redundant
315+
httpStatus := http.StatusInternalServerError
316316
if strings.Contains(err.Error(), "this endpoint requires authentication information that is unavailable when authorization is disabled.") {
317317
httpStatus = http.StatusForbidden
318318
}

0 commit comments

Comments
 (0)