Explorar o código

Remove needless substitutions to a temporary variable x

yakomaxa %!s(int64=2) %!d(string=hai) anos
pai
achega
e0ca413c54
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      src/mol-model/structure/query/queries/atom-set.ts

+ 2 - 4
src/mol-model/structure/query/queries/atom-set.ts

@@ -23,16 +23,14 @@ export function atomCount(ctx: QueryContext) {
 export function countQuery(query: StructureQuery) {
     return (ctx: QueryContext) => {
         const sel = query(ctx);
-        const x: number = StructureSelection.structureCount(sel);
-        return x;
+        return StructureSelection.structureCount(sel);
     };
 }
 
 export function propertySet(prop: QueryFn<any>) {
     return (ctx: QueryContext) => {
         const set = new Set();
-        const x = getCurrentStructureProperties(ctx, prop, set);
-        return x;
+        return getCurrentStructureProperties(ctx, prop, set);
     };
 }