fix linter

This commit is contained in:
Nikita Galaiko 2023-08-29 11:24:06 +02:00 committed by GitButler
parent 62f00beacc
commit 42aa15a96c
4 changed files with 1 additions and 5 deletions

View File

@ -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?;

View File

@ -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;
},

View File

@ -43,7 +43,6 @@
baseBranchStore
]);
const branchesWithContent = getWithContentStore(projectId, sessionsStore, vbranchStore);
$: console.log('with content', $branchesWithContent)
const fetchUnsubscribe = fetchStore.subscribeStream();
const gitHeadUnsubscribe = headStore.subscribeStream();

View File

@ -37,7 +37,6 @@
}
$: activeBranches = branches?.filter((b) => b.active);
$: console.log('branches', activeBranches);
</script>
{#if branchesState.isLoading || baseBranchState.isLoading}