We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4307d commit 5a8fa80Copy full SHA for 5a8fa80
src/documentation/Release.js
@@ -22,9 +22,11 @@ import dirTree from 'directory-tree'
22
23
class MDHelper {
24
readContent(path) {
25
- if (!fs.lstatSync(path).isFile()) return ''
26
try {
27
const fd = fs.openSync(path, 'r')
+ if (!fs.lstatSync(fd).isFile()) {
28
+ return ''
29
+ }
30
return fs.existsSync(fd) ? fs.readFileSync(fd, 'utf8') : ''
31
} catch (err) {
32
return ''
0 commit comments