Skip to content

Commit 91ba98f

Browse files
committed
tidy up cli arg creation
1 parent 4f18a4b commit 91ba98f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tools/fastlane-plugin/lib/fastlane/plugin/bugsnag/actions/bugsnag_cli.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ def self.create_build_args(api_key, version_name, version_code, bundle_version,
7575
args += ["--retries", retries] unless retries.nil?
7676
args += ["--timeout", timeout] unless timeout.nil?
7777
args += ["--build-api-root-url", endpoint] unless endpoint.nil?
78-
args += ["--verbose"] if FastlaneCore::UI.verbose?
78+
args += ["--verbose"] if FastlaneCore::Globals.verbose?
7979
args
8080
end
8181

82-
def self.upload_args dir, upload_url, project_root, api_key, verbose, ignore_missing_dwarf, ignore_empty_dsym, dryrun, log_level, port, retries, timeout, configuration, scheme, plist, xcode_project
82+
def self.upload_args dir, upload_url, project_root, api_key, ignore_missing_dwarf, ignore_empty_dsym, dryrun, log_level, port, retries, timeout, configuration, scheme, plist, xcode_project
8383
args = []
84-
args += ["--verbose"] if verbose
84+
args += ["--verbose"] if FastlaneCore::Globals.verbose?
8585
args += ["--ignore-missing-dwarf"] if ignore_missing_dwarf
8686
args += ["--ignore-empty-dsym"] if ignore_empty_dsym
8787
args += ["--api-key", api_key] unless api_key.nil?

tools/fastlane-plugin/lib/fastlane/plugin/bugsnag/actions/upload_symbols_to_bugsnag.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def self.run(params)
1919

2020
# If verbose flag is enabled (`--verbose`), display the plugin action debug info
2121
# Store the verbose flag for use in the upload arguments.
22-
verbose = UI.verbose("Uploading dSYMs to Bugsnag with the following parameters:")
22+
UI.verbose("Uploading dSYMs to Bugsnag with the following parameters:")
2323
rjust = 30 # set justification width for keys for the list of parameters to output
2424
params.values.each do |param|
2525
UI.verbose(" #{param[0].to_s.rjust(rjust)}: #{param[1]}")
@@ -34,7 +34,6 @@ def self.run(params)
3434
params[:upload_url],
3535
params[:project_root],
3636
api_key,
37-
verbose,
3837
params[:ignore_missing_dwarf],
3938
params[:ignore_empty_dsym],
4039
params[:dryrun],

0 commit comments

Comments
 (0)