Skip to content

Commit

Permalink
Updates to clean new lint from Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
blakegearin committed Feb 8, 2024
1 parent ff1bebc commit 6b0035b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/face.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Face
# Retrieves all faces
def self.all(twemoji_version)
yml_file = YAML.safe_load(File.read('app/models/twemoji/face.yml'))
yml_file = YAML.safe_load_file('app/models/twemoji/face.yml')

version_hash = {}
version_found = false
Expand Down
2 changes: 1 addition & 1 deletion app/models/twemoji/twemoji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class Twemoji
attr_reader :xml

VALID_VERSIONS = YAML.safe_load(File.read('app/models/twemoji/face.yml')).keys.freeze
VALID_VERSIONS = YAML.safe_load_file('app/models/twemoji/face.yml').keys.freeze

def initialize(version, id, remove_groups)
@id = id
Expand Down

0 comments on commit 6b0035b

Please sign in to comment.