Skip to content

Commit

Permalink
Fix recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Sep 12, 2021
1 parent 19fe6af commit efe370b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Alchemy/Utilities/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ extension Service {
}

public static func config(default configuration: Self) {
config(nil, configuration)
_config(nil, configuration)
}

public static func config(_ name: String, _ configuration: Self) {
config(name, configuration)
_config(name, configuration)
}

private static func config(_ name: String? = nil, _ configuration: Self) {
private static func _config(_ name: String? = nil, _ configuration: Self) {
let label: String
if let name = name {
label = "\(Alchemy.name(of: Self.self)):\(name)"
Expand Down

0 comments on commit efe370b

Please sign in to comment.