Skip to content
Snippets Groups Projects
Commit e0ca413c authored by yakomaxa's avatar yakomaxa
Browse files

Remove needless substitutions to a temporary variable x

parent a272fc1c
Branches
Tags
No related merge requests found
...@@ -23,16 +23,14 @@ export function atomCount(ctx: QueryContext) { ...@@ -23,16 +23,14 @@ export function atomCount(ctx: QueryContext) {
export function countQuery(query: StructureQuery) { export function countQuery(query: StructureQuery) {
return (ctx: QueryContext) => { return (ctx: QueryContext) => {
const sel = query(ctx); const sel = query(ctx);
const x: number = StructureSelection.structureCount(sel); return StructureSelection.structureCount(sel);
return x;
}; };
} }
export function propertySet(prop: QueryFn<any>) { export function propertySet(prop: QueryFn<any>) {
return (ctx: QueryContext) => { return (ctx: QueryContext) => {
const set = new Set(); const set = new Set();
const x = getCurrentStructureProperties(ctx, prop, set); return getCurrentStructureProperties(ctx, prop, set);
return x;
}; };
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment