Skip to content

Commit 3aa0e24

Browse files
author
Christian Elies
committed
refactor(default remote image service factory): added default parameter value
1 parent 30e3dec commit 3aa0e24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/RemoteImage/public/Services/DefaultRemoteImageServiceFactory.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
// Created by Christian Elies on 29.10.19.
66
//
77

8+
import Foundation
9+
810
public final class DefaultRemoteImageServiceFactory {
9-
public static func makeDefaultRemoteImageService(remoteImageURLDataPublisher: RemoteImageURLDataPublisher) -> DefaultRemoteImageService {
11+
public static func makeDefaultRemoteImageService(remoteImageURLDataPublisher: RemoteImageURLDataPublisher = URLSession.shared) -> DefaultRemoteImageService {
1012
let dependencies = DefaultRemoteImageServiceDependencies(remoteImageURLDataPublisher: remoteImageURLDataPublisher)
1113
return DefaultRemoteImageService(dependencies: dependencies)
1214
}

0 commit comments

Comments
 (0)