Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Mar 13, 2024
1 parent 87ab6d0 commit f62468c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/studio/src/services/parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class ParserService extends AbstractService {
return extras.document.getRangeForJsonPath(jsonPath);
}
} catch (err) {
console.error(err);
console.error(err);
}
}

Expand All @@ -98,9 +98,7 @@ export class ParserService extends AbstractService {
const yamlDoc = parseWithPointers(this.svcs.editorSvc.value);

const location = getLocationForJsonPath(yamlDoc, jsonPath, true);
const range = location?.range || { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } };

return range;
return location?.range || { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } };
}
} catch (err) {
console.error(err);
Expand Down

0 comments on commit f62468c

Please sign in to comment.