Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimatedSwine37 committed Apr 14, 2024
1 parent 25a34ad commit 8435da7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions assets/js/formatter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
function fromFile(content) {
console.log("Running fromFile on")
console.log(content)
// Note that I removed the options object. If stuff breaks maybe add it back
const result = matter.matter(content, {});
// in the absent of a body when serializing an entry we use an empty one
Expand All @@ -12,9 +10,6 @@ function fromFile(content) {
}

function toFile(data) {
console.log("Running toFile on")
console.log(data)

const { body = '', ...meta } = data;

// gray-matter always adds a line break at the end which trips our
Expand Down

0 comments on commit 8435da7

Please sign in to comment.