Skip to content

Commit

Permalink
[#55021] remove unnecessary html_safe
Browse files Browse the repository at this point in the history
Both id and identifier are simple strings. No need no mark them as
html_safe.
  • Loading branch information
Tobias Dillmann committed Sep 11, 2024
1 parent a8d365e commit 3c2a48c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/components/projects/row_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
module Projects
class RowComponent < ::RowComponent
delegate :favored_project_ids, to: :table
delegate :identifier, to: :project

def project
model.first
Expand Down Expand Up @@ -108,17 +109,7 @@ def required_disk_space
end

def id
content = "".html_safe

content << project.id.to_s
content
end

def identifier
content = "".html_safe

content << project.identifier
content
project.id.to_s
end

def name
Expand Down

0 comments on commit 3c2a48c

Please sign in to comment.