From: mmd-osm Date: Tue, 2 Apr 2019 18:01:59 +0000 (+0200) Subject: Remove unnessary init X-Git-Tag: live~3402^2~6 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1316ed8c1110ff25f9e09c57dd6a85dc4b97fb65?hp=fe805836cc89efd9d053a15e2c1a78eef3f57582 Remove unnessary init --- diff --git a/lib/gpx.rb b/lib/gpx.rb index 7c72c726f..0299f63b5 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -57,7 +57,7 @@ module GPX proj = OSM::Mercator.new(min_lat, min_lon, max_lat, max_lon, width, height) - frames = Array.new(nframes, GD2::Image::IndexedColor.new(width, height)) + frames = [] (0..nframes - 1).each do |n| frames[n] = GD2::Image::IndexedColor.new(width, height)