mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
Eslint fixes for v4x (#989)
* UPDATE .eslintrc * UPDATE lint task * FIX lint errors * CLEANUP * FIX no-eq-null warning * FIX many jsdoc warnings * FIX jsdoc issues * FIX jsdoc warnings * FIX jsdoc * FIX eqeq and no-eq-null * ADD lint to travis * UPDATE test env for eslint
This commit is contained in:
@@ -21,6 +21,7 @@ function mainTpl(config) {
|
||||
if (config.repo) {
|
||||
html += tpl.corner(config.repo)
|
||||
}
|
||||
|
||||
if (config.coverpage) {
|
||||
html += tpl.cover()
|
||||
}
|
||||
@@ -154,12 +155,14 @@ export default class Renderer {
|
||||
if (!res.ok) {
|
||||
throw Error()
|
||||
}
|
||||
|
||||
content = await res.text()
|
||||
this.lock = 0
|
||||
} else {
|
||||
content = await readFileSync(filePath, 'utf8')
|
||||
this.lock = 0
|
||||
}
|
||||
|
||||
return content
|
||||
} catch (e) {
|
||||
this.lock = this.lock || 0
|
||||
|
||||
Reference in New Issue
Block a user