Skip to content

Business intelligence made simple

Fixed linter errors [skip ci]

Andrewfe763802e908
diff --git a/app/controllers/blazer/base_controller.rb b/app/controllers/blazer/base_controller.rb
index 35a2ccbe..fbfa2d76 100644
--- a/app/controllers/blazer/base_controller.rb
+++ b/app/controllers/blazer/base_controller.rb
@@ -7,7 +7,7 @@ module Blazer
skip_after_action(*filters, raise: false)
skip_around_action(*filters, raise: false)
else
- skip_action_callback *filters
+ skip_action_callback(*filters)
end
protect_from_forgery with: :exception
diff --git a/app/controllers/blazer/queries_controller.rb b/app/controllers/blazer/queries_controller.rb
index 4ae29329..56aa0d4a 100644
--- a/app/controllers/blazer/queries_controller.rb
+++ b/app/controllers/blazer/queries_controller.rb
@@ -210,7 +210,7 @@ module Blazer
@first_row = @rows.first || []
@column_types = []
if @rows.any?
- @columns.each_with_index do |column, i|
+ @columns.each_with_index do |_, i|
@column_types << (
case @first_row[i]
when Integer
diff --git a/lib/blazer.rb b/lib/blazer.rb
index f5374e1f..671ef9f5 100644
--- a/lib/blazer.rb
+++ b/lib/blazer.rb
@@ -126,8 +126,6 @@ module Blazer
end
def self.run_check(check)
- rows = nil
- error = nil
tries = 1
ActiveSupport::Notifications.instrument("run_check.blazer", check_id: check.id, query_id: check.query.id, state_was: check.state) do |instrument|
diff --git a/lib/blazer/data_source.rb b/lib/blazer/data_source.rb
index 5a371347..c21900c4 100644
--- a/lib/blazer/data_source.rb
+++ b/lib/blazer/data_source.rb
@@ -90,7 +90,6 @@ module Blazer
end
def run_statement(statement, options = {})
- run_id = options[:run_id]
async = options[:async]
result = nil
if cache_mode != "off"
diff --git a/lib/tasks/blazer.rake b/lib/tasks/blazer.rake
index dfb02591..284885ca 100644
--- a/lib/tasks/blazer.rake
+++ b/lib/tasks/blazer.rake
@@ -1,6 +1,6 @@
namespace :blazer do
desc "run checks"
- task :run_checks, [:schedule] => :environment do |t, args|
+ task :run_checks, [:schedule] => :environment do |_, args|
Blazer.run_checks(schedule: args[:schedule] || ENV["SCHEDULE"])
end