Remove trailing whitespace (#6)
This commit is contained in:
parent
68a78301be
commit
deedb518af
@ -12,7 +12,6 @@ disabled_rules: # rule identifiers to exclude from running
|
||||
- type_contents_order
|
||||
# consider enabling ones below
|
||||
- explicit_acl
|
||||
- trailing_whitespace
|
||||
- identifier_name
|
||||
- empty_count
|
||||
- shorthand_operator
|
||||
|
||||
@ -49,7 +49,7 @@ extension Account {
|
||||
logger.info("failure")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
logger.info("checking for spent txOuts")
|
||||
self.checkForSpentTxOuts {
|
||||
completion($0.map {
|
||||
|
||||
@ -16,7 +16,7 @@ final class Account {
|
||||
logger.info("")
|
||||
self.accountKey = accountKey.accountKey
|
||||
}
|
||||
|
||||
|
||||
var debugDescription: String { publicAddress.debugDescription }
|
||||
|
||||
var publicAddress: PublicAddress {
|
||||
@ -199,7 +199,7 @@ final class Account {
|
||||
""")
|
||||
return .failure(InvalidInputError("Receipt confirmation number is invalid."))
|
||||
}
|
||||
|
||||
|
||||
logger.info("success - txOut owned by this account")
|
||||
return .success(ownedTxOut)
|
||||
}
|
||||
@ -214,7 +214,7 @@ extension Account {
|
||||
return .failure(InvalidInputError(
|
||||
"Accounts without fog URLs are not currently supported."))
|
||||
}
|
||||
|
||||
|
||||
logger.info("success - accountKey uses Fog")
|
||||
return .success(Account(accountKey: accountKey))
|
||||
}
|
||||
@ -285,7 +285,7 @@ extension OwnedTxOut {
|
||||
} else {
|
||||
spentBlock = nil
|
||||
}
|
||||
|
||||
|
||||
self.init(txOutTracker.knownTxOut, receivedBlock: receivedBlock, spentBlock: spentBlock)
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ public struct PublicAddress {
|
||||
var fogReportUrl: FogUrl? { fogInfo?.reportUrl }
|
||||
var fogReportId: String? { fogInfo?.reportId }
|
||||
var fogAuthoritySig: Data? { fogInfo?.authoritySig }
|
||||
|
||||
|
||||
var debugDescription: String {
|
||||
"(viewPublicKey, spendPublicKey): " +
|
||||
"(\(redacting: viewPublicKey), \(redacting: spendPublicKey)), " +
|
||||
|
||||
@ -60,7 +60,7 @@ struct FogUntrustedTxOutFetcher {
|
||||
"Fog UntrustedTxOut service failed to return the requested TxOuts. " +
|
||||
"\(response)"))
|
||||
}
|
||||
|
||||
|
||||
return .success((results, blockCount: response.numBlocks))
|
||||
})
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ final class FogViewKeyScanner {
|
||||
return .failure(.invalidServerResponse(
|
||||
"Fog Block service returned invalid output: \(output)"))
|
||||
}
|
||||
|
||||
|
||||
return .success(LedgerTxOut(
|
||||
partialTxOut,
|
||||
globalIndex: globalIndexStart + UInt64(outputIndex),
|
||||
|
||||
@ -277,7 +277,7 @@ private final class RngTracker {
|
||||
"\(txOutResult)"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
logger.info("success - foundTxOutResults")
|
||||
return .success(foundTxOutResults)
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ final class AttestAke {
|
||||
return .failure(.invalidInput("Error: authEnd can only be " +
|
||||
"called when there is an auth pending."))
|
||||
}
|
||||
|
||||
|
||||
return attestAke.authEnd(
|
||||
authResponseData: authResponseData,
|
||||
attestationVerifier: attestationVerifier
|
||||
|
||||
@ -16,7 +16,7 @@ class ConnectionSession {
|
||||
}
|
||||
return cookieStorage
|
||||
}
|
||||
|
||||
|
||||
private let url: URL
|
||||
private let cookieStorage: HTTPCookieStorage
|
||||
var authorizationCredentials: BasicCredentials?
|
||||
|
||||
@ -150,9 +150,9 @@ extension Receipt {
|
||||
logger.info("Failed to initialize receipt with External_Receipt")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
logger.info("")
|
||||
|
||||
|
||||
self.txOutPublicKeyTyped = txOutPublicKey
|
||||
self.commitment = commitment
|
||||
self.maskedValue = proto.amount.maskedValue
|
||||
|
||||
@ -30,7 +30,7 @@ func XCTAssertNoThrowOrFulfill<T>(
|
||||
}
|
||||
}
|
||||
XCTAssertNoThrow(evaluating: expressionWrapper, message(), file: file, line: line)
|
||||
|
||||
|
||||
if caughtError != nil {
|
||||
expectation.fulfill()
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ class MobileCoinClientIntTests: XCTestCase {
|
||||
|
||||
submitTransaction { (transaction: Transaction) in
|
||||
var numChecksRemaining = 5
|
||||
|
||||
|
||||
func checkStatus() {
|
||||
numChecksRemaining -= 1
|
||||
print("Checking status...")
|
||||
@ -314,7 +314,7 @@ class MobileCoinClientIntTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
group.notify(queue: DispatchQueue.main) {
|
||||
expect.fulfill()
|
||||
}
|
||||
|
||||
@ -73,5 +73,5 @@ class AttestAkePerfTests: PerformanceTestCase {
|
||||
fixture?.encryptedData.base64EncodedString())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -21,5 +21,5 @@ class FogRngTests: XCTestCase {
|
||||
XCTAssertEqual(rng.advance(), expectedOutput)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user