Enable curly and block-spacing eslint rules

This commit is contained in:
Quincy Morgan
2020-11-10 14:19:11 -05:00
parent d247ec3aed
commit ba48a861bc
24 changed files with 138 additions and 107 deletions
+2 -1
View File
@@ -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;
};
+2 -4
View File
@@ -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';
};