diff --git a/NetworkInfrastructure/NetworkInfrastructure/Core/DataSources/RemoteDataSource.swift b/NetworkInfrastructure/NetworkInfrastructure/Core/DataSources/RemoteDataSource.swift index 6a6d675d..4bdad0c1 100644 --- a/NetworkInfrastructure/NetworkInfrastructure/Core/DataSources/RemoteDataSource.swift +++ b/NetworkInfrastructure/NetworkInfrastructure/Core/DataSources/RemoteDataSource.swift @@ -17,29 +17,23 @@ final public class RemoteDataSource: RemoteDataSourceProtocol { } public func movieDataSource() -> MovieRemoteDataSourceProtocol { - let client = MovieClient() - return MovieRemoteDataSource(client: client) + MovieRemoteDataSource(client: MovieClient()) } public func genreDataSource() -> GenreRemoteDataSourceProtocol { - let client = GenreClient() - return GenreRemoteDataSource(client: client) + GenreRemoteDataSource(client: GenreClient()) } public func accountDataSource() -> AccountRemoteDataSourceProtocol { - let client = AccountClient() - return AccountRemoteDataSource(client: client) + AccountRemoteDataSource(client: AccountClient()) } public func authDataSource() -> AuthRemoteDataSourceProtocol { - let authClient = AuthClient() - let accountClient = AccountClient() - return AuthRemoteDataSource(authClient: authClient, accountClient: accountClient) + AuthRemoteDataSource(authClient: AuthClient(), accountClient: AccountClient()) } public func configurationDataSource() -> ConfigurationRemoteDataSourceProtocol { - let configurationClient = ConfigurationClient() - return ConfigurationRemoteDataSource(client: configurationClient) + ConfigurationRemoteDataSource(client: ConfigurationClient()) } }