Skip to content

Commit 4648c66

Browse files
committed
fix format using double quotes
1 parent e75a869 commit 4648c66

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/full_text_search/hooks/issue_query_any_searchable.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ def sql_for_any_searchable_field(field, operator, value)
2626
def compute_target_project_ids
2727
if respond_to?(:project) && project
2828
[project.id]
29-
elsif has_filter?('project_id')
30-
case values_for('project_id').first
31-
when 'mine'
29+
elsif has_filter?("project_id")
30+
case values_for("project_id").first
31+
when "mine"
3232
User.current.projects.ids
33-
when 'bookmarks'
33+
when "bookmarks"
3434
User.current.bookmarked_project_ids
3535
else
36-
values_for('project_id')
36+
values_for("project_id")
3737
end
3838
else
3939
[]
@@ -44,7 +44,7 @@ def build_filter_condition(user, project_ids)
4444
target_ids = Project.allowed_to(user, :view_issues).pluck(:id)
4545
target_ids &= project_ids if project_ids.present?
4646
if target_ids.present?
47-
"in_values(project_id, #{target_ids.join(',')})"
47+
"in_values(project_id, #{target_ids.join(",")})"
4848
else
4949
"1==1"
5050
end

test/unit/full_text_search/issue_query_any_searchable_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_and_two_words_within_my_projects
9999
},
100100
"project_id" => {
101101
:operator => "=",
102-
:values => ['mine']
102+
:values => ["mine"]
103103
},
104104
},
105105
:sort_criteria => [["id", "asc"]]

0 commit comments

Comments
 (0)