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 authored and nlegg committed Aug 8, 2011
1 parent b47b293 commit dbe2fc1
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 $asset_counts;
my $desk_caption = sub { my $desk_caption = sub {
my ($desk_id, $desk_name) = @_; 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; return sprintf "$desk_name (%d)", $asset_counts->{$desk_id} || 0;
}; };
</%once>\ </%once>\
Expand Down

0 comments on commit dbe2fc1

Please sign in to comment.