Skip to content

Commit

Permalink
Update src/utils/contextYAML.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Barrow <[email protected]>
  • Loading branch information
Dan O'Brien and ldhenry authored Feb 6, 2024
1 parent 6d98c79 commit 0f0d864
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/contextYAML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export class YamlContextReader {
try {
const fileContents = fs.readFileSync(filePath, 'utf8');
const data = yaml.load(fileContents);
//const ajv = new Ajv();
//const validate = ajv.compile(schema);
//const valid = validate(data);
// if (!valid) {
// throw validate.errors;
// }
return data;
} catch (e) {
window.showErrorMessage(`Error reading YAML file at ${filePath}: ${JSON.stringify(e)}`);
Expand Down

0 comments on commit 0f0d864

Please sign in to comment.