Update ArchiveItem.swift

The *ing methods didn't alter the value, they provided a new value which was not assigned to anything.
This commit is contained in:
Tom Vos committed 2019-08-21 10:20:37 +02:00
1 parent 035bfc4919
commit fedb22e224
1 file changed
+3 -4
+3 -4
View File
@@ -93,10 +93,9 @@ class ArchiveItem: CustomStringConvertible {
var feedURL:URL? = nil;
if let feedURLStr = infoPlist["SUFeedURL"] as? String {
feedURL = URL(string: feedURLStr);
if feedURL?.pathExtension == "php" {
feedURL?.deletingLastPathComponent()
feedURL?.appendingPathComponent("appcast.xml")
if let feedURL = URL(string: feedURLStr), feedURL.pathExtension == "php" {
feedURL = feedURL.deletingLastPathComponent()
feedURL = feedURL.appendingPathComponent("appcast.xml")
}
}