Skip to content

Commit

Permalink
fix(middleware-bucket-endpoint): revert add support for s3 object lam…
Browse files Browse the repository at this point in the history
…dbas (#2103)

This reverts commit 01bd1a0.
  • Loading branch information
trivikr authored Mar 4, 2021
1 parent 1b5cb0f commit 827c7b8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ export const validateArnEndpointOptions = (options: {
};

export const validateService = (service: string) => {
if (service !== "s3"
&& service !== "s3-outposts"
&& service !== "s3-object-lambda") {
throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
if (service !== "s3" && service !== "s3-outposts") {
throw new Error("Expect 's3' or 's3-outposts' in ARN service component");
}
};

Expand Down

0 comments on commit 827c7b8

Please sign in to comment.