src/lib/utils/Storyblok.js
Function setMetadata
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setMetadata = (res) => {
if (res.data.story.content.seo) {
const metadataTag = checkForMetaTag('metadataTitle');
const metaOgTitle = checkForMetaTag('metaOgTitle', 'og:title');
const metaOgImage = checkForMetaTag('metaOgImage', 'og:image');