commit f8d6fbf1539fbab8a338023a671d95096d33d47a parent c8d95aca2aabdd3fb50866690257ca751513d883 Author: William Casarin <jb55@jb55.com> Date: Fri, 29 Nov 2024 10:34:56 -0800 refactor: simplify demo timeline if statement Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
M | src/app.rs | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/app.rs b/src/app.rs @@ -898,10 +898,10 @@ fn set_demo( Route::Accounts(AccountsRoute::Accounts), ])); - let timeline = TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey)) - .into_timeline(ndb, Some(demo_pubkey.bytes())); - - if let Some(timeline) = timeline { + if let Some(timeline) = + TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey)) + .into_timeline(ndb, Some(demo_pubkey.bytes())) + { columns.add_new_timeline_column(timeline); } storage::save_columns(data_path, columns.as_serializable_columns());