Skip to content

Commit

Permalink
Remove unnecessary parenthesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 5, 2016
1 parent 632f809 commit 90cc19c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/spidr/page/content_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Page
# The Content-Type of the page.
#
def content_type
(@response['Content-Type'] || '')
@response['Content-Type'] || ''
end

#
Expand All @@ -19,7 +19,7 @@ def content_type
# @since 0.2.2
#
def content_types
(@response.get_fields('content-type') || [])
@response.get_fields('content-type') || []
end

#
Expand Down
2 changes: 1 addition & 1 deletion lib/spidr/page/cookies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Page
# @since 0.2.7
#
def cookie
(@response['Set-Cookie'] || '')
@response['Set-Cookie'] || ''
end

alias raw_cookie cookie
Expand Down
2 changes: 1 addition & 1 deletion lib/spidr/page/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def each_meta_redirect
# Specifies whether the page includes page-level redirects.
#
def meta_redirect?
!(each_meta_redirect.first.nil?)
!each_meta_redirect.first.nil?
end

#
Expand Down

0 comments on commit 90cc19c

Please sign in to comment.