Skip to content

Commit

Permalink
Fix codacy remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaslehnertum committed Nov 13, 2023
1 parent b420d62 commit 3eb936f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/packages/bpmn/bpmn-pool/bpmn-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class BPMNPool extends UMLPackage {

type: UMLElementType = BPMNElementType.BPMNPool;

hasSwimlanes = (children: ILayoutable[]) =>
hasSwimlanes = (children: ILayoutable[]): boolean =>
children.length > 0 &&
children.every((child: ILayoutable & { type?: UMLElementType }) => child.type === BPMNElementType.BPMNSwimlane);

Expand Down
2 changes: 1 addition & 1 deletion src/main/packages/bpmn/bpmn-swimlane/bpmn-swimlane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class BPMNSwimlane extends UMLContainer {

// We set this flag to indicate that swimlanes should not be picked up by the layouter
// for resizing-based repositioning.
isManuallyLayouted: boolean = true;
isManuallyLayouted = true;

render(layer: ILayer, children: ILayoutable[] = []): ILayoutable[] {
if (this.bounds.height < BPMNSwimlane.MIN_HEIGHT) {
Expand Down

0 comments on commit 3eb936f

Please sign in to comment.