Skip to content

Commit

Permalink
switched from === to ==
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhunter committed Feb 22, 2012
1 parent f790df1 commit 639634d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/riak/client/node.rb
Expand Up @@ -96,7 +96,7 @@ def inspect


def ssl_enable
@client.protocol = 'https' unless @client.protocol === 'https'
@client.protocol = 'https' unless @client.protocol == 'https'
@ssl_options[:pem] = File.read(@ssl_options[:pem_file]) if @ssl_options[:pem_file]
@ssl_options[:verify_mode] ||= "peer" if @ssl_options.stringify_keys.any? {|k,v| %w[pem ca_file ca_path].include?(k)}
@ssl_options[:verify_mode] ||= "none"
Expand All @@ -106,7 +106,7 @@ def ssl_enable
end

def ssl_disable
@client.protocol = 'http' unless @client.protocol === 'http'
@client.protocol = 'http' unless @client.protocol == 'http'
@ssl_options = nil
end

Expand Down

0 comments on commit 639634d

Please sign in to comment.