mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Enable curly and block-spacing eslint rules
This commit is contained in:
@@ -256,11 +256,13 @@ export function behaviorSelect(context) {
|
||||
|
||||
var datum = pointerInfo.firstEvent.target.__data__;
|
||||
var entity = (datum && datum.properties && datum.properties.entity) || datum;
|
||||
if (context.graph().hasEntity(entity.id)) return {
|
||||
pointerId: pointerId,
|
||||
entityId: entity.id,
|
||||
selected: selectedIDs.indexOf(entity.id) !== -1
|
||||
};
|
||||
if (context.graph().hasEntity(entity.id)) {
|
||||
return {
|
||||
pointerId: pointerId,
|
||||
entityId: entity.id,
|
||||
selected: selectedIDs.indexOf(entity.id) !== -1
|
||||
};
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user