[gnome-maps] opendataCH: Remove extranous parameter



commit c869f998e7cb1cee86550d122850bf40533e3763
Author: Marcus Lundblad <ml update uu se>
Date:   Sat Feb 26 10:39:11 2022 +0100

    opendataCH: Remove extranous parameter
    
    Remove an extra unneeded copy of the "duration"
    parameter when constructing a TransitPlan.Itinerary.

 src/transitplugins/opendataCH.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/transitplugins/opendataCH.js b/src/transitplugins/opendataCH.js
index 62fb972f..cd4640c1 100644
--- a/src/transitplugins/opendataCH.js
+++ b/src/transitplugins/opendataCH.js
@@ -236,8 +236,7 @@ var OpendataCH = class OpendataCH {
         return new TransitPlan.Itinerary({ duration:  duration,
                                            departure: startTime,
                                            arrival:   endTime,
-                                           legs:      legs,
-                                           duration:  duration });
+                                           legs:      legs });
     }
 
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]