mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 20:43:37 +03:00
chore: simplify code formatting and remove unnecessary code
This commit is contained in:
parent
5e6d5c466b
commit
22c6b7813c
@ -50,10 +50,7 @@
|
||||
let rsViewport: HTMLElement;
|
||||
|
||||
const userSettings = getContext<SettingsStore>(SETTINGS_CONTEXT);
|
||||
const defaultBranchWidthRem = persisted<number | undefined>(
|
||||
24,
|
||||
'defaulBranchWidth' + project.id
|
||||
);
|
||||
const defaultBranchWidthRem = persisted<number | undefined>(24, 'defaulBranchWidth' + project.id);
|
||||
const laneWidthKey = 'laneWidth_';
|
||||
|
||||
let laneWidth: number;
|
||||
|
@ -103,9 +103,7 @@
|
||||
selectable={$commitBoxOpen && !isUnapplied}
|
||||
on:close={() => {
|
||||
const selectedId = selected?.id;
|
||||
selectedFiles.update((fileIds) =>
|
||||
fileIds.filter((file) => file.id != selectedId)
|
||||
);
|
||||
selectedFiles.update((fileIds) => fileIds.filter((file) => file.id != selectedId));
|
||||
}}
|
||||
/>
|
||||
<Resizer
|
||||
|
@ -56,10 +56,8 @@
|
||||
{indeterminate}
|
||||
on:change={(e) => {
|
||||
selectedOwnership.update((ownership) => {
|
||||
if (e.detail)
|
||||
file.hunks.forEach((h) => ownership.addHunk(file.id, h.id));
|
||||
if (!e.detail)
|
||||
file.hunks.forEach((h) => ownership.removeHunk(file.id, h.id));
|
||||
if (e.detail) file.hunks.forEach((h) => ownership.addHunk(file.id, h.id));
|
||||
if (!e.detail) file.hunks.forEach((h) => ownership.removeHunk(file.id, h.id));
|
||||
return ownership;
|
||||
});
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user