Skip to content

Commit

Permalink
Don't need index for each block
Browse files Browse the repository at this point in the history
  • Loading branch information
akahn authored and indirect committed Nov 5, 2010
1 parent e88a367 commit 7273944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def execute(*args)

# Check if arg is a file. If so, grab the content.
files = []
args.each_with_index do |arg, i|
args.each do |arg|
if File.exists?(file = arg)
files.push({
:input => File.read(file),
:filename => file,
:input => File.read(file),
:filename => file,
:extension => (File.extname(file) if file.include?('.'))
})
else
Expand Down

0 comments on commit 7273944

Please sign in to comment.