Run rubocop on all files
This commit is contained in:
@@ -5,9 +5,9 @@ module Adamantium
|
||||
include Deps["geo.gpx_parser", "commands.workouts.create"]
|
||||
|
||||
def handle(req, res)
|
||||
tempfile = Tempfile.new(%w/path .gpx/)
|
||||
tempfile = Tempfile.new(%w[path .gpx])
|
||||
|
||||
if req.params.to_h.dig(:file, :tempfile) != nil
|
||||
if !req.params.to_h.dig(:file, :tempfile).nil?
|
||||
tempfile.write req.params[:file][:tempfile].read
|
||||
else
|
||||
tempfile.write req.params[:file]
|
||||
@@ -15,7 +15,6 @@ module Adamantium
|
||||
|
||||
tempfile.rewind
|
||||
|
||||
|
||||
gpxfile = gpx_parser.call(path: tempfile.path)
|
||||
|
||||
if gpxfile.success?
|
||||
|
Reference in New Issue
Block a user