Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber committed Aug 24, 2019
1 parent f8d47d7 commit f01657e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/algolia_html_extractor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'nokogiri'
require 'digest/md5'

Expand Down Expand Up @@ -153,6 +155,7 @@ def self.uuid(item)
def self.heading_weight(heading_level)
weight = 100
return weight if heading_level.nil?

weight - ((heading_level + 1) * 10)
end
end
2 changes: 2 additions & 0 deletions lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Expose gem version
# rubocop:disable Style/SingleLineMethods
class AlgoliaHTMLExtractorVersion
Expand Down

0 comments on commit f01657e

Please sign in to comment.