Skip to content

Commit 7458eb6

Browse files
authored
Removed Unnecessary casts
Signed-off-by: Prashant Jain <[email protected]>
1 parent f702543 commit 7458eb6

File tree

1 file changed

+2
-2
lines changed
  • force-app/main/default/classes/main/standard-soql

1 file changed

+2
-2
lines changed

force-app/main/default/classes/main/standard-soql/SOQL.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ public virtual inherited sharing class SOQL implements Queryable {
995995
}
996996

997997
public List<AggregateResult> toAggregated() {
998-
return (List<AggregateResult>) this.toList();
998+
return this.toList();
999999
}
10001000

10011001
public List<AggregateResultProxy> toAggregatedProxy() {
@@ -2592,7 +2592,7 @@ public virtual inherited sharing class SOQL implements Queryable {
25922592
return this.getMockedAggregateProxy();
25932593
}
25942594

2595-
return new AggregateResultProxys().add((List<AggregateResult>) this.toList()).get();
2595+
return new AggregateResultProxys().add(this.toList()).get();
25962596
}
25972597

25982598
private List<AggregateResultProxy> getMockedAggregateProxy() {

0 commit comments

Comments
 (0)