From 323887920d3862ac07eb8115963da2b45701995d Mon Sep 17 00:00:00 2001 From: Markus Emrich Date: Tue, 20 Aug 2019 15:10:15 -0700 Subject: [PATCH] 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 --- Source/Internal/IGListAdapter+DebugDescription.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Internal/IGListAdapter+DebugDescription.m b/Source/Internal/IGListAdapter+DebugDescription.m index faba875c..0ee05f41 100644 --- a/Source/Internal/IGListAdapter+DebugDescription.m +++ b/Source/Internal/IGListAdapter+DebugDescription.m @@ -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;