Skip to content

Commit

Permalink
Update lib/metadata_json_lint.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
  • Loading branch information
bastelfreak and ekohl authored Jan 24, 2025
1 parent 24bdd94 commit 349f099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metadata_json_lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def contains_invalid_escape?(content)
end
module_function :contains_invalid_escape?

def contains_invalid_newline?(content)
def misses_newline_at_end?(content)
content[-1] != "\n"
end
module_function :contains_invalid_newline?
Expand Down

0 comments on commit 349f099

Please sign in to comment.