fix: (regression 0.57.0) get_file_list API was sending useless empty comment for every "real" entry when config comments_storage=attr
Massimo Melina committed
Nov 27, 2025 at 20:02 UTC
17e2d28fde9354b31839a4c1a460c59230e86dd4
1 file changed
+1
-1
src/comments.ts
+1
-1
@@ -30,7 +30,7 @@ export async function getCommentFor(path?: string) {
30
return !path ? undefined : Promise.all([
31
commentsStorage.get() ? loadFileAttr(path, COMMENT_ATTR) : undefined,
32
readFromDescriptIon(path)
33
- ]).then(([fromAttr, fromIon]) => fromAttr || fromIon)
33
+ ]).then(([fromAttr, fromIon]) => fromAttr || fromIon || undefined)
34
}
35
36
export async function setCommentFor(path: string, comment: string) {