mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-01 20:45:57 +03:00
fix linter
This commit is contained in:
parent
62f00beacc
commit
42aa15a96c
@ -171,9 +171,8 @@ impl Controller {
|
||||
let target = super::set_base_branch(&gb_repository, &project_repository, target_branch)
|
||||
.map_err(Error::Other)?;
|
||||
let current_session = gb_repository.get_current_session()?;
|
||||
drop(gb_repository);
|
||||
|
||||
if let Some(session) = current_session {
|
||||
if let Some(session) = current_session{
|
||||
self.watchers
|
||||
.post(watcher::Event::Session(project_id.to_string(), session))
|
||||
.await?;
|
||||
|
@ -14,7 +14,6 @@ export function getSessionStore2(projectId: string): SessionsStore {
|
||||
[],
|
||||
async () => {
|
||||
const sessions = await list({ projectId: projectId });
|
||||
console.log('sessions', sessions);
|
||||
sessions.sort((a, b) => a.meta.startTimestampMs - b.meta.startTimestampMs);
|
||||
return sessions;
|
||||
},
|
||||
|
@ -43,7 +43,6 @@
|
||||
baseBranchStore
|
||||
]);
|
||||
const branchesWithContent = getWithContentStore(projectId, sessionsStore, vbranchStore);
|
||||
$: console.log('with content', $branchesWithContent)
|
||||
|
||||
const fetchUnsubscribe = fetchStore.subscribeStream();
|
||||
const gitHeadUnsubscribe = headStore.subscribeStream();
|
||||
|
@ -37,7 +37,6 @@
|
||||
}
|
||||
|
||||
$: activeBranches = branches?.filter((b) => b.active);
|
||||
$: console.log('branches', activeBranches);
|
||||
</script>
|
||||
|
||||
{#if branchesState.isLoading || baseBranchState.isLoading}
|
||||
|
Loading…
Reference in New Issue
Block a user