Skip to content

Commit 2e1005d

Browse files
author
Vivek Vishal
authored
fix eslint errors
Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
1 parent 40adc7f commit 2e1005d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

gatsby-node.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -801,17 +801,17 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
801801
const pagePath = `/projects/sistent/components/${name}${suffix}`;
802802
const componentPath = `./src/sections/Projects/Sistent/components/${name}/${file}`;
803803
if (fs.existsSync(path.resolve(componentPath))) {
804-
try {
805-
createPage({
806-
path: pagePath,
807-
component: require.resolve(componentPath),
808-
});
809-
} catch (error) {
810-
console.error(`Error creating page for "${pagePath}":`, error);
811-
}
812-
} else {
813-
console.info(`Skipping creating page "${pagePath}" - file not found: "${componentPath}"`);
814-
}
804+
try {
805+
createPage({
806+
path: pagePath,
807+
component: require.resolve(componentPath),
808+
});
809+
} catch (error) {
810+
console.error(`Error creating page for "${pagePath}":`, error);
811+
}
812+
} else {
813+
console.info(`Skipping creating page "${pagePath}" - file not found: "${componentPath}"`);
814+
}
815815
});
816816
});
817817
};

0 commit comments

Comments
 (0)