Skip to content

Commit 6ff7b5b

Browse files
Remove empty string value entries before adding to build info dictionary
- Part of #87
1 parent c8dd44b commit 6ff7b5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BuildSettingExtractor/BuildSettingCommentGenerator.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ - (BOOL)loadBuildSettingInfo {
221221
dictionary = [self xcspecFileBuildSettingInfoForPath:fullpath];
222222
}
223223
if (dictionary) {
224-
[infoStringFile addEntriesFromDictionary:dictionary];
224+
// Remove empty string values that may be masking backstop values
225+
NSDictionary *processedDictionary = [dictionary tps_dictionaryByRemovingEmptyStringValues];
226+
[infoStringFile addEntriesFromDictionary:processedDictionary];
225227
}
226228
if (dictionary || foundOne) {
227229
foundOne = YES;

0 commit comments

Comments
 (0)