Skip to content

Commit

Permalink
chore: reverted back to implicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Dec 8, 2021
1 parent 0256291 commit 52762e5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/actions/utils/serialization-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ const serializeTextProp = (h, node, propName) => {
return result;
};

const serializeJSValue = (value) => {
return Buffer.from(JSON.stringify(value)).toString('base64');
};
const serializeJSValue = (value) =>
Buffer.from(JSON.stringify(value)).toString('base64');

const serializeProps = (node) => {
if (node.attributes.length === 0) {
Expand Down Expand Up @@ -110,9 +109,8 @@ const serializeComponent = (
return result;
};

const getComponentName = (node) => {
return node.name === null ? 'React.Fragment' : node.name;
};
const getComponentName = (node) =>
node.name === null ? 'React.Fragment' : node.name;

const stripNulls = (obj) =>
Object.fromEntries(Object.entries(obj).filter(([, value]) => value != null));
Expand Down

0 comments on commit 52762e5

Please sign in to comment.