Skip to content

Commit

Permalink
Fix code style issues
Browse files Browse the repository at this point in the history
Layout/TrailingWhitespace and Layout/SpaceBeforeBlockBraces cops
  • Loading branch information
tmaier authored Mar 23, 2023
1 parent 70e616c commit 82df3e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/unleash/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def to_s
"<Context: user_id=#{@user_id},session_id=#{@session_id},remote_address=#{@remote_address},properties=#{@properties}" \
",app_name=#{@app_name},environment=#{@environment}>"
end

def to_h
ATTRS.map { |attr| [attr, self.send(attr)] }.to_h.merge(properties: @properties)
ATTRS.map{ |attr| [attr, self.send(attr)] }.to_h.merge(properties: @properties)
end

def get_by_name(name)
Expand Down

0 comments on commit 82df3e8

Please sign in to comment.