Fix fmt
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2022-05-18 00:32:51 +02:00
parent 926b3c0fad
commit 30e393b439
Signed by: lx
GPG key ID: 0E496D15096376BE
3 changed files with 3 additions and 9 deletions

View file

@ -45,9 +45,7 @@ impl From<HelperError> for Error {
match err { match err {
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)), HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)), HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
HelperError::InvalidBucketName(n) => { HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
Self::Common(CommonError::InvalidBucketName(n))
}
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)), HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
HelperError::NoSuchAccessKey(n) => Self::NoSuchAccessKey(n), HelperError::NoSuchAccessKey(n) => Self::NoSuchAccessKey(n),
} }

View file

@ -59,9 +59,7 @@ impl From<HelperError> for Error {
match err { match err {
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)), HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)), HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
HelperError::InvalidBucketName(n) => { HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
Self::Common(CommonError::InvalidBucketName(n))
}
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)), HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
e => Self::Common(CommonError::BadRequest(format!("{}", e))), e => Self::Common(CommonError::BadRequest(format!("{}", e))),
} }

View file

@ -91,9 +91,7 @@ impl From<HelperError> for Error {
match err { match err {
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)), HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)), HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
HelperError::InvalidBucketName(n) => { HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
Self::Common(CommonError::InvalidBucketName(n))
}
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)), HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
e => Self::bad_request(format!("{}", e)), e => Self::bad_request(format!("{}", e)),
} }