Remove stringWithFormat: calls without parameters (#1360)

Summary:
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1360

`codemod -m -d ~/fbsource/fbobjc/ --extensions m,mm '\[NSString stringWithFormat\:\@\"([^\"]*?)\"\]' '@"\1"'`

Excluded third party libraries.

Differential Revision: D15590354

fbshipit-source-id: 954db583a02e0da26ea52ad7b8762e1d8f902ab4
This commit is contained in:
Markus Emrich 2019-08-20 15:10:15 -07:00 committed by Facebook Github Bot
parent 3deecff55a
commit 323887920d

View file

@ -59,15 +59,15 @@
[debug addObjectsFromArray:IGListDebugIndentedLines([(IGListAdapterUpdater *)self.updater debugDescriptionLines])];
}
[debug addObject:[NSString stringWithFormat:@"Section map details:"]];
[debug addObject:@"Section map details:"];
[debug addObjectsFromArray:IGListDebugIndentedLines([self.sectionMap debugDescriptionLines])];
if (self.previousSectionMap != nil) {
[debug addObject:[NSString stringWithFormat:@"Previous section map details:"]];
[debug addObject:@"Previous section map details:"];
[debug addObjectsFromArray:IGListDebugIndentedLines([self.previousSectionMap debugDescriptionLines])];
}
[debug addObject:[NSString stringWithFormat:@"Collection view details:"]];
[debug addObject:@"Collection view details:"];
[debug addObjectsFromArray:IGListDebugIndentedLines([self.collectionView debugDescriptionLines])];
#endif // #if IGLK_DEBUG_DESCRIPTION_ENABLED
return debug;