Skip to content

Conversation

@niktverd
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@niktverd niktverd requested a review from NikitaCG March 14, 2023 12:38
@@ -0,0 +1,8 @@
export enum AvailableForCompressExtention {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typos extenSion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}

export const canBeCompressed = (fileName: string) =>
Object.keys(AvailableForCompressExtention).find((ext) => fileName.endsWith(`.${ext}`));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.some work similarly like .find, but always return boolean. If we need boolean in disableWebp variable always, we need to use .some

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@niktverd niktverd force-pushed the feat/disable_compress branch from 8493a2b to 7f284cd Compare March 24, 2023 04:54
@niktverd niktverd merged commit 136034b into main Apr 3, 2023
@niktverd niktverd deleted the feat/disable_compress branch April 3, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants