Skip to content

Commit

Permalink
Append Injector even if class doesn't have Impl in name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanielczyk committed Jan 3, 2024
1 parent ef03e98 commit 3c2e021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Templates/Inject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func extractNeededName(_ type: Type) -> String? {
let attribute = type.attributes["Needs"]?.first
else {
if type.attributes["NeedsInjector"]?.first != nil {
return type.name.replacingOccurrences(of: "Impl", with: "Injector")
return type.name.replacingOccurrences(of: "Impl", with: "") + "Injector"
} else {
return nil
}
Expand Down

0 comments on commit 3c2e021

Please sign in to comment.