refactor: convert function expressions to declarations (#4926)
This commit is contained in:
committed by
GitHub
parent
c0236536dd
commit
141a2eba56
@ -49,7 +49,9 @@ exports.createPages = async ({ graphql, actions }) => {
|
||||
});
|
||||
};
|
||||
|
||||
const pad = n => (n >= 10 ? n : `0${n}`);
|
||||
function pad(n) {
|
||||
return n >= 10 ? n : `0${n}`;
|
||||
}
|
||||
|
||||
exports.onCreateNode = ({ node, actions, getNode }) => {
|
||||
const { createNodeField } = actions;
|
||||
|
Reference in New Issue
Block a user