Skip to content

Commit

Permalink
Refactoring variabl assignment to use mass assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Jan 9, 2012
1 parent 7aa2ea6 commit 106ece7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rocco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ def generate_comment_chars
# form `[docs, code]` where both elements are arrays containing the
# raw lines parsed from the input file, comment characters stripped.
def parse(data)
sections = []
docs, code = [], []
sections, docs, code = [], [], []
lines = data.split("\n")

# The first line is ignored if it is a shebang line. We also ignore the
Expand Down

0 comments on commit 106ece7

Please sign in to comment.