Skip to content

Commit

Permalink
clean up bullet concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
LePips committed Dec 11, 2024
1 parent 37fb603 commit 4fe1b31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Plugins/PluginsShared/PluginError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum PluginError: Swift.Error, CustomStringConvertible, LocalizedError {
let targetNames = targetNames.joined(separator: ", ", lastSeparator: " and ")
return "Found no targets with names \(targetNames)."
case .fileErrors(let fileErrors):
return "Issues with required files:\n\(fileErrors.map { $0 .description.prepended("- ") }.joined(separator: "\n"))."
return "Issues with required files:\n\(fileErrors.map { "- " + $0 .description }.joined(separator: "\n"))."
}
}

Expand Down
6 changes: 0 additions & 6 deletions Plugins/PluginsShared/PluginUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,3 @@ extension Array where Element == String {
return "\(self.dropLast().joined(separator: separator))\(lastSeparator)\(self.last!)"
}
}

extension String {
func prepended(_ prefix: String) -> String {
return prefix + self
}
}

0 comments on commit 4fe1b31

Please sign in to comment.