Skip to content

Commit

Permalink
Correct Style/RedundantInitialize rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
krauselukas committed Apr 22, 2022
1 parent e084c32 commit 2781766
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion docker-files/home/.irbrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ ARGV.concat ['--readline',
IRB.conf[:SAVE_HISTORY] = 500

# Store results in home directory with specified file name
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:HISTORY_FILE] = "#{ENV.fetch('HOME', nil)}/.irb_history"
4 changes: 0 additions & 4 deletions src/api/app/models/history_element/request_superseded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ def description
def user_action
'superseded request'
end

def initialize(a)
super
end
end
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class OpenRequestsWithByProjectReviewFinder < OpenRequestsFinder
def initialize(relation, project_name)
super(relation, project_name)
end

def requests_finder
@relation.where("reviews.state = 'new' and reviews.by_project = ? ", @project_name)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module ConsistencyCheckJobService
class ProjectConsistencyChecker < BaseConsistencyChecker
def initialize
super
end

def list_frontend
Project.order(:name).pluck(:name)
end
Expand Down

0 comments on commit 2781766

Please sign in to comment.