From: mmd-osm Date: Tue, 2 Apr 2019 18:01:59 +0000 (+0200) Subject: Remove unnessary init X-Git-Tag: live~2571^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1316ed8c1110ff25f9e09c57dd6a85dc4b97fb65?ds=sidebyside 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)