Skip to content

Commit

Permalink
Fix build warnings (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Mehdi Mirzaei <[email protected]>
  • Loading branch information
mehdiimrz and Mehdi Mirzaei authored Jul 11, 2022
1 parent c00b48d commit d25ba3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/NetShears/Extension/Bundle+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ extension Bundle {
#if SWIFT_PACKAGE
let resourceBundle = Bundle.module
return resourceBundle
#endif
#else
let podBundle = Bundle(for: NetShears.classForCoder())
if let bundleURL = podBundle.url(forResource: "NetShears", withExtension: "bundle"){
if let bundle = Bundle(url: bundleURL) {
return bundle
}
}

return Bundle(for: NetShears.classForCoder())
#endif
}
}
2 changes: 1 addition & 1 deletion Sources/NetShears/UI/BodyDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final class BodyDetailViewController: UIViewController, ShowLoaderProtocol {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
let hud = showLoader(view: view)
RequestExporter.body(data, bodyExportType: bodyExportType ?? .default) { [weak self] (stringData) in
RequestExporter.body(data, bodyExportType: bodyExportType ) { [weak self] (stringData) in
let formattedJSON = stringData
DispatchQueue.main.async {
self?.textView.text = formattedJSON
Expand Down

0 comments on commit d25ba3b

Please sign in to comment.