Skip to content

Commit b4db3f4

Browse files
committed
Support case of passing a nil exclusions list
So that both omitting the key entirely, and providing it but with a nil value, are both the same as using an empty exclusion list
1 parent 649b103 commit b4db3f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.skip_string_by_tag(string_line)
2424

2525
# Checks if string_name is in the excluesion list
2626
def self.skip_string_by_exclusion_list(library, string_name)
27-
return false unless library.key?(:exclusions)
27+
return false if library[:exclusions].nil?
2828

2929
skip = library[:exclusions].include?(string_name)
3030
if skip

0 commit comments

Comments
 (0)