Permalink
Browse files

Remove unnecessary variable assignment.

  • Loading branch information...
hypomodern committed May 23, 2012
1 parent 88609b6 commit d79b903d731fea10c6de6ea8345330d0b7bb5c88
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/bracket_tree/template.rb
@@ -18,13 +18,13 @@ def by_size size
end
# Generates Template from JSON
- #
+ #
# @param [String] json - the bracket template in its standard data specification
# @return [BracketTree::Template]
def from_json json
template = new
if json['seats']
- template.seats = json['seats'].map { |s| s['position'] }
+ template.seats = json['seats'].map { |s| s['position'] }
end
if json['startingSeats']
@@ -68,12 +68,12 @@ def generate_blank_bracket
bracket
end
-
+
# Returns hash representation of the Template
#
# @return [Hash] template
def to_h
- hash = {
+ {
'seats' => @seats.map { |s| { 'position' => s } },
'startingSeats' => @starting_seats,
'nodes' => @nodes

0 comments on commit d79b903

Please sign in to comment.