Skip to content

Commit

Permalink
Use next to exit early from the `check_declared_locales_consistency…
Browse files Browse the repository at this point in the history
…` lane
  • Loading branch information
iangmaia committed Jul 16, 2024
1 parent 77b220e commit 7a0868b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .buildkite/commands/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "--- :rubygems: Setting up Gems"
install_gems

echo "--- : clipboard: Copying gradle.properties"
echo "--- :clipboard: Copying gradle.properties"
cp gradle.properties-example gradle.properties

echo "--- :globe_with_meridians: Check Locales Declaration Consistency"
Expand Down
2 changes: 1 addition & 1 deletion fastlane/lanes/localization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def update_po_file_for_metadata_localization(po_path:, sources:, release_version
resource_configs = output.match(/^#{app}: \[(.*)\]$/)&.captures&.first&.gsub(' ', '')&.split(',')&.sort
if resource_configs.nil? || resource_configs.empty?
UI.message("No `resourceConfigurations` field set in `build.gradle` for the `#{app}` flavor. Nothing to check.")
return
next
end

locales_list = { 'wordpress' => WP_APP_LOCALES, 'jetpack' => JP_APP_LOCALES }.fetch(app, nil)
Expand Down

0 comments on commit 7a0868b

Please sign in to comment.