chore: remove needless comments

This commit is contained in:
Nicolas Meienberger 2026-01-05 21:06:36 +01:00
parent 61aaa8938a
commit 13428224e8
2 changed files with 0 additions and 3 deletions

View file

@ -1,2 +1 @@
/** Default base path for local repositories */
export const REPOSITORY_BASE = "/var/lib/zerobyte/repositories";

View file

@ -31,11 +31,9 @@ const getEffectiveLocalPath = (repository: Repository): string | null => {
const config = repository.config as { name: string; path?: string; isExistingRepository?: boolean };
if (config.isExistingRepository) {
// Imported repositories use the path directly
return config.path ?? null;
}
// New repositories append the name to the base path
const basePath = config.path || REPOSITORY_BASE;
return `${basePath}/${config.name}`;
};