Skip to content

Commit 2c5d1ff

Browse files
committed
remove unnecessary cast to 'IEnumerable<ISubmodel>'.
1 parent 68e1e1a commit 2c5d1ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

source/AAS.TwinEngine.DataEngine/ApplicationLogic/Services/SubmodelRepository/SubmodelRepositoryService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ private async Task<List<ISubmodel>> BuildSubmodelsAsync(IEnumerable<string> subm
130130
return submodel;
131131
});
132132

133-
return [.. (await Task.WhenAll(tasks).ConfigureAwait(false))
134-
.Where(submodel => submodel is not null)
135-
.Cast<ISubmodel>()];
133+
return [.. (await Task.WhenAll(tasks).ConfigureAwait(false)).Where(submodel => submodel is not null)];
136134
}
137135

138136
private async Task<ISubmodel> BuildSubmodelWithValuesAsync(ISubmodel template, string submodelId, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)