Skip to content

Commit 96a9600

Browse files
committed
remove warning
1 parent 60b524b commit 96a9600

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Plogging/Common/Protocol/Protocol+NibLodable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import UIKit
99

10-
protocol NibLoadable: class {
10+
protocol NibLoadable: AnyObject {
1111
static var nibName: String { get }
1212
}
1313

Plogging/My Page/Controller/PloggingDetailInfoViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class PloggingDetailInfoViewController: UIViewController {
131131

132132
let fetchResult = PHAsset.fetchAssets(with: .image, options: fetchOptions)
133133

134-
if let lastAsset = fetchResult.firstObject as? PHAsset {
134+
if let lastAsset = fetchResult.firstObject {
135135
guard let url = URL(string: "instagram://library?LocalIdentifier=\(lastAsset.localIdentifier)") else {
136136
return
137137
}

Plogging/Plogging/Plogging Result/Controller/PloggingResultViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ extension PloggingResultViewController {
181181
return
182182
}
183183

184-
APICollection.sharedAPI.requestRegisterPloggingResult(param: requestParameter, imageData: forwardingImageData) { [weak self] (response) in
184+
APICollection.sharedAPI.requestRegisterPloggingResult(param: requestParameter, imageData: forwardingImageData) { (response) in
185185
if let result = try? response.get() {
186186
if result.rc == 200 {
187187
print("success")
188188
} else if result.rc == 401 {
189-
// self?.makeLoginRootViewController()
189+
print("failed")
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)