Skip to content

Commit

Permalink
Save a function call for every desk.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Aug 5, 2011
1 parent a0b62ce commit cd54243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comp/widgets/wrappers/sideNav.mc
Expand Up @@ -74,7 +74,7 @@ my $get_cookie = sub {
my $asset_counts;
my $desk_caption = sub {
my ($desk_id, $desk_name) = @_;
return $desk_name unless get_pref('Show Desk Asset Counts');
return $desk_name unless $asset_counts;
return sprintf "$desk_name (%d)", $asset_counts->{$desk_id} || 0;
};
</%once>\
Expand Down

0 comments on commit cd54243

Please sign in to comment.