Skip to content

Commit 06f6557

Browse files
julien-cpcuenca
andauthored
Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
1 parent 6ce783f commit 06f6557

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/hub/src/lib/cache-management.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ export async function scanRefsDir(refsPath: string, refsByHash: Map<string, stri
212212
for (const refFile of refFiles) {
213213
const refFilePath = join(refsPath, refFile.name);
214214
if (refFile.isDirectory()) {
215-
continue;
216-
} // Skip directories
215+
continue; // Skip directories
216+
}
217217

218218
const commitHash = await readFile(refFilePath, "utf-8");
219219
const refName = refFile.name;
@@ -232,8 +232,8 @@ export async function scanSnapshotDir(
232232
const files = await readdir(revisionPath, { withFileTypes: true });
233233
for (const file of files) {
234234
if (file.isDirectory()) {
235-
continue;
236-
} // Skip directories
235+
continue; // Skip directories
236+
}
237237

238238
const filePath = join(revisionPath, file.name);
239239
const blobPath = await realpath(filePath);

0 commit comments

Comments
 (0)