mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Address new lint warnings from previous commit.
This commit is contained in:
parent
9020557389
commit
c81101d2b1
3 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
return micromark.compile(compileOptions)(events);
|
return micromark.compile(compileOptions)(events);
|
||||||
} catch (error) {
|
} catch(error) {
|
||||||
return `[Exception: "${error}"]`;
|
return `[Exception: "${error}"]`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -650,7 +650,7 @@ function lintContent(
|
||||||
// Synchronous rule
|
// Synchronous rule
|
||||||
try {
|
try {
|
||||||
invokeRuleFunction();
|
invokeRuleFunction();
|
||||||
} catch (error) {
|
} catch(error) {
|
||||||
if (handleRuleFailures) {
|
if (handleRuleFailures) {
|
||||||
catchCallsOnError(error);
|
catchCallsOnError(error);
|
||||||
} else {
|
} else {
|
||||||
|
@ -721,7 +721,7 @@ function lintContent(
|
||||||
} else {
|
} else {
|
||||||
callbackSuccess();
|
callbackSuccess();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch(error) {
|
||||||
callbackError(error);
|
callbackError(error);
|
||||||
} finally {
|
} finally {
|
||||||
cacheInitialize();
|
cacheInitialize();
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default function parseConfiguration(name, content, parsers) {
|
||||||
config = (result && (typeof result === "object") && !Array.isArray(result)) ? result : {};
|
config = (result && (typeof result === "object") && !Array.isArray(result)) ? result : {};
|
||||||
// Succeeded
|
// Succeeded
|
||||||
return false;
|
return false;
|
||||||
} catch (error) {
|
} catch(error) {
|
||||||
errors.push(`Parser ${index++}: ${error.message}`);
|
errors.push(`Parser ${index++}: ${error.message}`);
|
||||||
}
|
}
|
||||||
// Failed, try the next parser
|
// Failed, try the next parser
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue