mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 21:49:22 +00:00
Formatting: removed redundant variable in CPSearchField.j
Variable `searches` is defined in the method selector, and then redeclared with the `var` keyword two lines later. Removed the redundant declaration, moving the variable assignment to its own line.
This commit is contained in:
1 parent
7cda21b60f
commit
6f72edc2d9
1 file changed
+2
-2
@@ -386,9 +386,9 @@ var CPAutosavedRecentsChangedNotification = @"CPAutosavedRecentsChangedNotificat
|
||||
*/
|
||||
- (void)setRecentSearches:(CPArray)searches
|
||||
{
|
||||
var max = MIN([self maximumRecents], [searches count]),
|
||||
searches = [searches subarrayWithRange:CPMakeRange(0, max)];
|
||||
var max = MIN([self maximumRecents], [searches count]);
|
||||
|
||||
searches = [searches subarrayWithRange:CPMakeRange(0, max)];
|
||||
_recentSearches = searches;
|
||||
[self _autosaveRecentSearchList];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user