Removed the unnecessary "fullPath" computed property from the Resource model in the library target.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// ===----------------------------------------------------------------------===
|
||||
|
||||
/// A model that encapsulates the information related to a resource in a given `DocC` documentation archive.
|
||||
struct Resource {
|
||||
struct Resource: Equatable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
@@ -38,18 +38,13 @@ struct Resource {
|
||||
// MARK: Computed
|
||||
|
||||
/// A relative URI path to a documentation archive the resource belongs to.
|
||||
lazy var archivePath: String = {
|
||||
var archivePath: String {
|
||||
.init(format: .Format.Path.archive, archiveName)
|
||||
}()
|
||||
}
|
||||
|
||||
/// A reference name for the documentation archive the resource belongs to.
|
||||
lazy var archiveReference: String = {
|
||||
var archiveReference: String {
|
||||
archiveName.lowercased()
|
||||
}()
|
||||
|
||||
/// A relative URI path to the resource in its documentation archive.
|
||||
lazy var fullPath: String = {
|
||||
.init(format: .Format.Path.archive, archiveName, relativePath)
|
||||
}()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user