mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-11 12:24:20 +01:00
refactor: simplify demo timeline if statement
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user