Skip to content

Commit

Permalink
remove warnings (#5754)
Browse files Browse the repository at this point in the history
* remove warnings

* fix Migrate “English.lproj” (Deprecated)
  • Loading branch information
Mustafa Hastürk authored and garvankeeley committed Nov 13, 2019
1 parent eb2023f commit dcecbb0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Client.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4185,10 +4185,9 @@
};
buildConfigurationList = F84B21B91A090F8100AAB793 /* Build configuration list for PBXProject "Client" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down
2 changes: 1 addition & 1 deletion Client/Frontend/Browser/Punycode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extension String {
}

fileprivate func decode(_ punycode: String) -> String {
var input = Array(punycode)
let input = Array(punycode)
var output = [Character]()
var i = 0
var n = initialN
Expand Down
2 changes: 1 addition & 1 deletion Storage/Rust/RustLogins.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class RustLogins {
}

do {
try self.storage.sync(unlockInfo: unlockInfo)
try _ = self.storage.sync(unlockInfo: unlockInfo)
deferred.fill(Maybe(success: ()))
} catch let err as NSError {
if let loginsStoreError = err as? LoginsStoreError {
Expand Down
2 changes: 1 addition & 1 deletion Storage/Rust/RustPlaces.swift
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public class RustPlaces {
}

do {
try self.api?.syncBookmarks(unlockInfo: unlockInfo)
try _ = self.api?.syncBookmarks(unlockInfo: unlockInfo)
deferred.fill(Maybe(success: ()))
} catch let err as NSError {
if let placesError = err as? PlacesError {
Expand Down
4 changes: 2 additions & 2 deletions Sync/StorageClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ public struct ResponseMetadata {
})

self.status = status
alert = headers["x-weave-alert"] as? String
nextOffset = headers["x-weave-next-offset"] as? String
alert = headers["x-weave-alert"]
nextOffset = headers["x-weave-next-offset"]
records = optionalUIntegerHeader(headers["x-weave-records"] as AnyObject?)
quotaRemaining = optionalIntegerHeader(headers["x-weave-quota-remaining"] as AnyObject?)
timestampMilliseconds = optionalSecondsHeader(headers["x-weave-timestamp"] as AnyObject?) ?? 0
Expand Down

0 comments on commit dcecbb0

Please sign in to comment.