Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Sep 11, 2024
1 parent 83c2d82 commit a8ac0ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/app/serializers/dataset_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class DatasetSerializer < ApplicationSerializer
attributes :programming_language, :zipfile, :name

def zipfile
return unless object.zipfile.present?
return if object.zipfile.blank?

url_for(object.zipfile)
end
end

0 comments on commit a8ac0ea

Please sign in to comment.