Fix failing static-analysis (rubocop)
This commit is contained in:
parent
d542c2f156
commit
fc9e57434c
|
@ -213,7 +213,7 @@ module IssuablesHelper
|
|||
initialTitleText: issuable.title,
|
||||
initialDescriptionHtml: markdown_field(issuable, :description),
|
||||
initialDescriptionText: issuable.description,
|
||||
initialTaskStatus: issuable.task_status,
|
||||
initialTaskStatus: issuable.task_status
|
||||
}
|
||||
|
||||
data.merge!(updated_at_by(issuable))
|
||||
|
|
|
@ -23,7 +23,7 @@ class IssueEntity < IssuableEntity
|
|||
end
|
||||
|
||||
expose :create_note_path do |issue|
|
||||
namespace_project_notes_path(issue.project.namespace, issue.project, target_type: 'issue', target_id: issue.id)
|
||||
project_notes_path(issue.project, target_type: 'issue', target_id: issue.id)
|
||||
end
|
||||
|
||||
expose :preview_note_path do |issue|
|
||||
|
|
|
@ -37,7 +37,7 @@ class NoteEntity < API::Entities::Note
|
|||
if note.for_personal_snippet?
|
||||
toggle_award_emoji_snippet_note_path(note.noteable, note)
|
||||
else
|
||||
toggle_award_emoji_namespace_project_note_path(note.project.namespace, note.project, note.id)
|
||||
toggle_award_emoji_project_note_path(note.project, note.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -49,12 +49,12 @@ class NoteEntity < API::Entities::Note
|
|||
if note.for_personal_snippet?
|
||||
snippet_note_path(note.noteable, note)
|
||||
else
|
||||
namespace_project_note_path(note.project.namespace, note.project, note)
|
||||
project_note_path(note.project, note)
|
||||
end
|
||||
end
|
||||
|
||||
expose :attachment, using: NoteAttachmentEntity
|
||||
expose :delete_attachment_path, if: -> (note, _) { note.attachment? } do |note|
|
||||
delete_attachment_namespace_project_note_path(note.project.namespace, note.project, note)
|
||||
delete_attachment_project_note_path(note.project, note)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue