Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Oct 12, 2023
1 parent 1e24104 commit 289f1e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/language/safe-ds-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { SafeDsClasses } from './builtins/safe-ds-classes.js';
import { SafeDsPackageManager } from './workspace/safe-ds-package-manager.js';
import { SafeDsNodeMapper } from './helpers/safe-ds-node-mapper.js';
import { SafeDsAnnotations } from './builtins/safe-ds-annotations.js';
import {SafeDsClassHierarchy} from "./typing/safe-ds-class-hierarchy.js";
import { SafeDsClassHierarchy } from './typing/safe-ds-class-hierarchy.js';

/**
* Declaration of custom services - add your own service classes here.
Expand Down
2 changes: 1 addition & 1 deletion src/language/typing/safe-ds-class-hierarchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SafeDsClassHierarchy {
}
};

return stream((generator)());
return stream(generator());
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/language/validation/inheritance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export const classMustNotInheritItself = (services: SafeDsServices) => {
return (node: SdsClass, accept: ValidationAcceptor): void => {
const superClasses = classHierarchy.streamSuperclasses(node);
if (superClasses.includes(node)) {
accept('error', "A class must not directly or indirectly be a subtype of itself.", {
accept('error', 'A class must not directly or indirectly be a subtype of itself.', {
node: parentTypesOrEmpty(node)[0],
code: CODE_INHERITANCE_CYCLE,
});
}
}
}
};
};
2 changes: 1 addition & 1 deletion src/language/validation/safe-ds-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import {
namedTypeMustNotSetTypeParameterMultipleTimes,
namedTypeTypeArgumentListMustNotHavePositionalArgumentsAfterNamedArguments,
} from './other/types/namedTypes.js';
import {classMustNotInheritItself, classMustOnlyInheritASingleClass} from "./inheritance.js";
import { classMustNotInheritItself, classMustOnlyInheritASingleClass } from './inheritance.js';

/**
* Register custom validation checks.
Expand Down

0 comments on commit 289f1e7

Please sign in to comment.