Skip to content

Commit 19dd940

Browse files
committed
docs: add some code comments and fix typos.
1 parent 73b3fbb commit 19dd940

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export class Configuration {
749749
if (langId === "blade") {
750750
const bladeComments = this.setBladeComments(this.getConfigurationValue("bladeOverrideComments"), true);
751751

752-
// If bladeComments is has a value...
752+
// If bladeComments has a value...
753753
if (bladeComments) {
754754
langConfig.comments.blockComment = bladeComments;
755755
}

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ export function readJsonFile<T extends JsonValue = JsonObject>(filepath: string,
3131

3232
const jsonErrors: jsonc.ParseError[] = [];
3333

34+
// Read the contents of the JSON file.
3435
const fileContent = fs
3536
.readFileSync(filepath, {encoding: "utf8"})
3637
.toString()
3738
.replace(/^\uFEFF/, ""); // Remove BOM if present.
39+
3840
const jsonContents = jsonc.parse(fileContent, jsonErrors, {allowEmptyContent: true}) ?? {};
3941

4042
if (jsonErrors.length > 0) {

0 commit comments

Comments
 (0)