Skip to content

Commit

Permalink
chore: update eslint*
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 21, 2024
1 parent 52778e5 commit c6fbc12
Show file tree
Hide file tree
Showing 7 changed files with 1,273 additions and 1,746 deletions.
3 changes: 1 addition & 2 deletions lib/core/GraphicsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ GraphicsFactory.prototype.update = function(type, element, gfx) {

// update positioning
translate(gfx, element.x, element.y);
} else
if (type === 'connection') {
} else if (type === 'connection') {
this.drawConnection(visual, element);
} else {
throw new Error('unknown type: ' + type);
Expand Down
3 changes: 1 addition & 2 deletions lib/features/bendpoints/BendpointMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function BendpointMove(injector, eventBus, canvas, dragging, rule

if (!insert && bendpointIndex === 0) {
type = RECONNECT_START;
} else
if (!insert && bendpointIndex === waypoints.length - 1) {
} else if (!insert && bendpointIndex === waypoints.length - 1) {
type = RECONNECT_END;
} else {
type = UPDATE_WAYPOINTS;
Expand Down
4 changes: 1 addition & 3 deletions lib/features/modeling/Modeling.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ Modeling.prototype.moveElements = function(shapes, delta, target, hints) {
if (attach === true) {
newHost = target;
newParent = target.parent;
} else

if (attach === false) {
} else if (attach === false) {
newHost = null;
}

Expand Down
3 changes: 1 addition & 2 deletions lib/features/overlays/Overlays.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ Overlays.prototype.get = function(search) {
} else {
return [];
}
} else
if (search.type) {
} else if (search.type) {
return filter(this._overlays, matchPattern({ type: search.type }));
} else {

Expand Down
Loading

0 comments on commit c6fbc12

Please sign in to comment.