Skip to content

Commit 46b3666

Browse files
committed
Handle case when the formatted docs is an empty string
This failed the unit tests on OS X.
1 parent 5976669 commit 46b3666

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/util/sh.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export async function getShellDocumentationWithoutCache({
8585
formattedDocumentation = formatManOutput(formattedDocumentation)
8686
}
8787

88-
return formattedDocumentation
88+
if (formattedDocumentation) {
89+
return formattedDocumentation
90+
}
8991
}
9092
} catch (error) {
9193
// Ignoring if command fails and store failure in cache

0 commit comments

Comments
 (0)