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.rbindex 35a2ccbe..fbfa2d76 100644--- a/app/controllers/blazer/base_controller.rb+++ b/app/controllers/blazer/base_controller.rb@@ -7,7 +7,7 @@ module Blazerskip_after_action(*filters, raise: false)skip_around_action(*filters, raise: false)else- skip_action_callback *filters+ skip_action_callback(*filters)endprotect_from_forgery with: :exceptiondiff --git a/app/controllers/blazer/queries_controller.rb b/app/controllers/blazer/queries_controller.rbindex 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 Integerdiff --git a/lib/blazer.rb b/lib/blazer.rbindex f5374e1f..671ef9f5 100644--- a/lib/blazer.rb+++ b/lib/blazer.rb@@ -126,8 +126,6 @@ module Blazerenddef self.run_check(check)- rows = nil- error = niltries = 1ActiveSupport::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.rbindex 5a371347..c21900c4 100644--- a/lib/blazer/data_source.rb+++ b/lib/blazer/data_source.rb@@ -90,7 +90,6 @@ module Blazerenddef run_statement(statement, options = {})- run_id = options[:run_id]async = options[:async]result = nilif cache_mode != "off"diff --git a/lib/tasks/blazer.rake b/lib/tasks/blazer.rakeindex dfb02591..284885ca 100644--- a/lib/tasks/blazer.rake+++ b/lib/tasks/blazer.rake@@ -1,6 +1,6 @@namespace :blazer dodesc "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