Skip to content

Commit

Permalink
manual merge
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerglinka committed Feb 17, 2022
1 parent 52ef55e commit 9a8d64c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
'use strict';

<<<<<<< HEAD
const debug = require('debug')('metalsmith-metameta');
=======
// eslint-disable-next-line no-unused-vars
const debug = require('debug')('@metalsmith/metadata');
>>>>>>> 87ad5ff9f9bb56fb5f728cdf898f1ec6ec05fe3e
const {
promises: { readFile, readdir }
} = require('fs');
Expand Down Expand Up @@ -103,15 +99,7 @@ function toJson(file, ext) {
switch (ext) {
case '.yaml':
case '.yml':
<<<<<<< HEAD
try {
fileContent = yamlToJSON(file);
} catch(e) {
debug(e);
}
=======
fileContent = yamlToJS(fileBuffer);
>>>>>>> 87ad5ff9f9bb56fb5f728cdf898f1ec6ec05fe3e
break;
case '.toml':
try { // remove object prototype
Expand Down Expand Up @@ -207,12 +195,7 @@ async function getDirectoryObject(directoryPath, optionKey, allMetadata) {
}
})
.catch((e) => {
<<<<<<< HEAD
debug(e);
=======
// eslint-disable-next-line no-undef
done(e.message);
>>>>>>> 87ad5ff9f9bb56fb5f728cdf898f1ec6ec05fe3e
});
}

Expand Down

0 comments on commit 9a8d64c

Please sign in to comment.