From a9d0054efacfca722293173ce3a968177c7c56a7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 19 Nov 2024 10:28:10 -0800 Subject: [PATCH] templates: Remove redundant {{#with this}} blocks. By definition, `this` is already the current context. Signed-off-by: Anders Kaseorg --- web/templates/message_group.hbs | 22 ++++++++----------- .../browse_streams_list_item.hbs | 2 -- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/web/templates/message_group.hbs b/web/templates/message_group.hbs index ba049e8d21..a40d0a77bc 100644 --- a/web/templates/message_group.hbs +++ b/web/templates/message_group.hbs @@ -1,18 +1,14 @@ {{! Client-side Handlebars template for rendering messages. }} {{#each message_groups}} - {{#with this}} - {{#if bookend_top}} - {{> bookend .}} - {{/if}} + {{#if bookend_top}} + {{> bookend .}} + {{/if}} -
- {{> recipient_row . use_match_properties=../use_match_properties}} - {{#each message_containers}} - {{#with this}} - {{> single_message . use_match_properties=../../use_match_properties message_list_id=../../message_list_id is_archived=../is_archived}} - {{/with}} - {{/each}} -
- {{/with}} +
+ {{> recipient_row . use_match_properties=../use_match_properties}} + {{#each message_containers}} + {{> single_message . use_match_properties=../../use_match_properties message_list_id=../../message_list_id is_archived=../is_archived}} + {{/each}} +
{{/each}} diff --git a/web/templates/stream_settings/browse_streams_list_item.hbs b/web/templates/stream_settings/browse_streams_list_item.hbs index 8bd34043c6..d631976f0a 100644 --- a/web/templates/stream_settings/browse_streams_list_item.hbs +++ b/web/templates/stream_settings/browse_streams_list_item.hbs @@ -1,5 +1,4 @@ {{! Client-side Handlebars template for rendering subscriptions. }} -{{#with this}}
{{#if subscribed}} @@ -70,4 +69,3 @@
-{{/with}}