Skip to content

Commit

Permalink
Fix codign style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Apr 1, 2020
1 parent 6657140 commit 829967c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/renderful/cache/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def delete(_key)
raise NotImplementedError
end

def fetch(key)
def fetch(_key)
raise NotImplementedError
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/renderful/cache/null.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
module Renderful
module Cache
class Null < Base
def exist?(key)
def exist?(_key)
false
end

def read(key)
def read(_key)
nil
end

Expand All @@ -19,7 +19,7 @@ def delete(key)
# noop
end

def fetch(key)
def fetch(_key)
nil
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/renderful/content_entry.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Renderful
class ContentEntry
attr_reader :provider, :id, :content_type, :fields
Expand Down
2 changes: 2 additions & 0 deletions lib/renderful/error/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Renderful
module Error
class Base < StandardError; end
Expand Down
6 changes: 4 additions & 2 deletions lib/renderful/provider/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Renderful
module Provider
class Base
Expand All @@ -11,11 +13,11 @@ def cache_prefix
fail NotImplementedError
end

def find_entry(entry_id)
def find_entry(_entry_id)
fail NotImplementedError
end

def cache_keys_to_invalidate(webhook_body)
def cache_keys_to_invalidate(_webhook_body)
fail NotImplementedError
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/renderful/provider/contentful.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Renderful
module Provider
class Contentful < Base
Expand Down

0 comments on commit 829967c

Please sign in to comment.