Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
daci committed Feb 15, 2024
1 parent 3203972 commit 5c059a5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,23 +289,14 @@ export class MaestroPlugin implements CompilerPlugin {
continue;

Check failure on line 289 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-20.04)

Expected indentation of 20 spaces but found 24
}

Check failure on line 290 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-20.04)

Expected indentation of 16 spaces but found 20
let classAnnotations = this.findAnnotations(method.parent) || [];

Check failure on line 291 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-20.04)

Expected indentation of 16 spaces but found 20
if (!classAnnotations.find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'nodeclass')) {
if (!classAnnotations.find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'task')) {
file.addDiagnostics([{
...onNotificationNotSupported(),
range: cs.range,
file: file
}]);
continue
}
// let isNodeClass = (method.parent.annotations|| []).find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'nodeclass' ;
// if (!isNodeClass) {
// file.addDiagnostics([{
// ...onNotificationNotSupported(),
// range: cs.range,
// file: file
// }]);
// continue
// }
if (method.name.text.toLowerCase() == "new") {
file.addDiagnostics([{
...onNotificationConstructorError(),
Expand Down

0 comments on commit 5c059a5

Please sign in to comment.