Skip to content

Commit

Permalink
DEV-443 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk authored Jan 4, 2024
1 parent dc1e114 commit fb46ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gingr/geoserver_publisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def batch_publish(filenames)
def publish(filename)
id = File.basename(filename, '.*')
file_path = remote_filepath(id, filename)
if File.extname(filename).casecmp('.shp')
if File.extname(filename).casecmp('.shp').zero?
publish_shapefile(file_path, id)
else
publish_geotiff(file_path, id)
Expand Down

0 comments on commit fb46ae4

Please sign in to comment.