Skip to content

Commit

Permalink
chore: tweak to satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Jul 31, 2024
1 parent b2d22ea commit a8e6bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remark-mdx-gw2ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import resolve from './map-gw2-ids.js';

function attrToProps(attr) {
const props = {};
attr && attr.forEach((attr) => (props[attr.name] = attr.value));
if (attr) {
attr.forEach((attr) => (props[attr.name] = attr.value));
}
return props;
}

Expand Down

0 comments on commit a8e6bcb

Please sign in to comment.