Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed May 26, 2024
1 parent 928aa85 commit 1611875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions SMELLS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Huge classes

- Page has lots of optional arguments that should not really be optional
- Could perhaps extract out some graph behaviour to a mixin

ParsedMarkdownDocument

- Would be useful for this to contain information from the unparsed document
4 changes: 0 additions & 4 deletions lib/obsidian/parser/frontmatter_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def parse(content)
complete = false

if first_line.chomp != "---"
puts "bye"
return {}
end

Expand All @@ -25,9 +24,6 @@ def parse(content)
lines << line
end

puts lines
puts complete

complete ? YAML.safe_load(lines.join) : {}
rescue YAML::SyntaxError, StopIteration
{}
Expand Down

0 comments on commit 1611875

Please sign in to comment.