Skip to content

Commit

Permalink
fix: js optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nunof07 committed Feb 25, 2023
1 parent 792690b commit 74a1dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const jsonLd = require("./jsonLd");
* @returns {String}
*/
module.exports = (data) => {
if (!data?.meta) {
if (!data.meta) {
return "";
}

Expand Down

0 comments on commit 74a1dbc

Please sign in to comment.