Commit 5d51ab2a authored by Tim Zallmann's avatar Tim Zallmann

Fixed Linting Errors

parent acfd70f0
......@@ -34,6 +34,6 @@ class Groups::AnalyticsController < Groups::ApplicationController
end
def check_contribution_analytics_available!
render_404 unless (@group.feature_available?(:contribution_analytics) || LicenseHelper.show_promotions?(current_user))
render_404 unless @group.feature_available?(:contribution_analytics) || LicenseHelper.show_promotions?(current_user)
end
end
class Projects::AuditEventsController < Projects::ApplicationController
include LicenseHelper
before_action :authorize_admin_project!
before_action :check_audit_events_available!
......@@ -11,6 +11,6 @@ class Projects::AuditEventsController < Projects::ApplicationController
end
def check_audit_events_available!
render_404 unless (@project.feature_available?(:audit_events) || LicenseHelper.show_promotions?(current_user))
render_404 unless @project.feature_available?(:audit_events) || LicenseHelper.show_promotions?(current_user)
end
end
......@@ -55,7 +55,6 @@ describe Groups::AnalyticsController do
expect(response).to have_http_status(200)
end
it 'sets instance variables properly' do
get :show, group_id: group.path
......
......@@ -47,7 +47,6 @@ feature 'Projects > Audit Events', :js do
end
end
it 'has Audit Events button in head nav bar' do
visit edit_project_path(project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment