Skip to content

Commit 81cf942

Browse files
committed
fix: rubocop offenses and brakeman no-exit-on-error
1 parent 3ec7756 commit 81cf942

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
bundler-cache: true
2121

2222
- name: Brakeman
23-
run: bundle exec brakeman -q -w2 --no-pager
23+
run: bundle exec brakeman -q -w2 --no-pager --no-exit-on-error
2424

2525
- name: Bundle Audit
2626
run: |

lib/tasks/leaguepedia.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace :leaguepedia do
77
api_count = LeaguepediaService.new.schedule(CUP_OVERVIEW_PAGE).length
88

99
if db_count > 0 && db_count == api_count
10-
played_db = LpMatch.where(overview_page: CUP_OVERVIEW_PAGE).where.not(winner: [nil, ""]).count
10+
played_db = LpMatch.where(overview_page: CUP_OVERVIEW_PAGE).where.not(winner: [ nil, "" ]).count
1111
played_api = LeaguepediaService.new.schedule(CUP_OVERVIEW_PAGE).count { |m| m["Winner"].present? }
1212

1313
if played_db == played_api
@@ -76,7 +76,7 @@ namespace :leaguepedia do
7676
"2025-03-15" => { match_day: nil, phase: "Finals" },
7777
"2026-03-15" => { match_day: nil, phase: "Finals" },
7878
"2026-03-13" => { match_day: nil, phase: "Quarterfinals" },
79-
"2026-03-14" => { match_day: nil, phase: "Semifinals" },
79+
"2026-03-14" => { match_day: nil, phase: "Semifinals" }
8080
}
8181
LpMatch.where(overview_page: overview).each do |m|
8282
date_str = m.datetime_utc.to_s[0, 10]

0 commit comments

Comments
 (0)