Skip to content

Commit f2bf7ee

Browse files
authored
chore: autocorrect rubocop offenses in appengine and jobs samples (#1908)
* style: autocorrect rubocop offenses in appengine and jobs samples * chore: align compensation range formatting per code review
1 parent 881a669 commit f2bf7ee

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

appengine/rails-hello_world/bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require "fileutils"
44
# path to your application root.
55
APP_ROOT = File.expand_path "..", __dir__
66

7-
def system!(*args)
7+
def system! *args
88
system(*args) || abort("\n== Command #{args} failed ==")
99
end
1010

appengine/standard-static-files/rails/bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require "fileutils"
1818
# path to your application root.
1919
APP_ROOT = File.expand_path "..", __dir__
2020

21-
def system!(*args)
21+
def system! *args
2222
system(*args) || abort("\n== Command #{args} failed ==")
2323
end
2424

appengine/static_files/rails/bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require "fileutils"
1818
# path to your application root.
1919
APP_ROOT = File.expand_path "..", __dir__
2020

21-
def system!(*args)
21+
def system! *args
2222
system(*args) || abort("\n== Command #{args} failed ==")
2323
end
2424

jobs/V3/filter_search_sample.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,18 @@ def job_discovery_compensation_search project_id:, company_name:, min_unit:, max
230230
session_id: "HashedSessionId",
231231
domain: "http://careers.google.com"
232232
# Search jobs that pay between min_unit and max_unit (USD/hour)
233-
compensation_range = jobs::CompensationRange.new max_compensation: (
234-
jobs::Money.new currency_code: "USD",
235-
units: max_unit,
236-
nanos: 500_000_000
237-
),
238-
min_compensation: (
239-
jobs::Money.new currency_code: "USD",
240-
units: min_unit,
241-
nanos: 0
242-
)
233+
compensation_range = jobs::CompensationRange.new(
234+
max_compensation: jobs::Money.new(
235+
currency_code: "USD",
236+
units: max_unit,
237+
nanos: 500_000_000
238+
),
239+
min_compensation: jobs::Money.new(
240+
currency_code: "USD",
241+
units: min_unit,
242+
nanos: 0
243+
)
244+
)
243245
compensation_filter = jobs::CompensationFilter.new type: "UNIT_AND_AMOUNT",
244246
units: ["HOURLY"],
245247
range: compensation_range

0 commit comments

Comments
 (0)