mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-28 10:51:45 +02:00
Enable curly and block-spacing eslint rules
This commit is contained in:
@@ -8,8 +8,9 @@ export function actionDeleteMember(relationId, memberIndex) {
|
||||
|
||||
graph = graph.replace(relation);
|
||||
|
||||
if (relation.isDegenerate())
|
||||
if (relation.isDegenerate()) {
|
||||
graph = actionDeleteRelation(relation.id)(graph);
|
||||
}
|
||||
|
||||
return graph;
|
||||
};
|
||||
|
||||
@@ -80,8 +80,7 @@ export function actionDisconnect(nodeId, newNodeId) {
|
||||
|
||||
action.disabled = function(graph) {
|
||||
var connections = action.connections(graph);
|
||||
if (connections.length === 0)
|
||||
return 'not_connected';
|
||||
if (connections.length === 0) return 'not_connected';
|
||||
|
||||
var parentWays = graph.parentWays(graph.entity(nodeId));
|
||||
var seenRelationIds = {};
|
||||
@@ -105,8 +104,7 @@ export function actionDisconnect(nodeId, newNodeId) {
|
||||
});
|
||||
});
|
||||
|
||||
if (sharedRelation)
|
||||
return 'relation';
|
||||
if (sharedRelation) return 'relation';
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user