From 1316ed8c1110ff25f9e09c57dd6a85dc4b97fb65 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Tue, 2 Apr 2019 20:01:59 +0200 Subject: [PATCH] Remove unnessary init --- lib/gpx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.2