chore: remove needless comments
This commit is contained in:
parent
61aaa8938a
commit
13428224e8
2 changed files with 0 additions and 3 deletions
|
|
@ -1,2 +1 @@
|
||||||
/** Default base path for local repositories */
|
|
||||||
export const REPOSITORY_BASE = "/var/lib/zerobyte/repositories";
|
export const REPOSITORY_BASE = "/var/lib/zerobyte/repositories";
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,9 @@ const getEffectiveLocalPath = (repository: Repository): string | null => {
|
||||||
const config = repository.config as { name: string; path?: string; isExistingRepository?: boolean };
|
const config = repository.config as { name: string; path?: string; isExistingRepository?: boolean };
|
||||||
|
|
||||||
if (config.isExistingRepository) {
|
if (config.isExistingRepository) {
|
||||||
// Imported repositories use the path directly
|
|
||||||
return config.path ?? null;
|
return config.path ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// New repositories append the name to the base path
|
|
||||||
const basePath = config.path || REPOSITORY_BASE;
|
const basePath = config.path || REPOSITORY_BASE;
|
||||||
return `${basePath}/${config.name}`;
|
return `${basePath}/${config.name}`;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue