Skip to content

Commit f8d6fbf

Browse files
committed
refactor: simplify demo timeline if statement
Signed-off-by: William Casarin <[email protected]>
1 parent c8d95ac commit f8d6fbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,10 @@ fn set_demo(
898898
Route::Accounts(AccountsRoute::Accounts),
899899
]));
900900

901-
let timeline = TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey))
902-
.into_timeline(ndb, Some(demo_pubkey.bytes()));
903-
904-
if let Some(timeline) = timeline {
901+
if let Some(timeline) =
902+
TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey))
903+
.into_timeline(ndb, Some(demo_pubkey.bytes()))
904+
{
905905
columns.add_new_timeline_column(timeline);
906906
}
907907
storage::save_columns(data_path, columns.as_serializable_columns());

0 commit comments

Comments
 (0)