[Lint] Remove redundant type annotation

This commit is contained in:
Matt Rubin 2019-04-12 13:35:38 -04:00
parent dcbbf4cc53
commit 3a38e20b0c
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ opt_in_rules:
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
- strict_fileprivate
- switch_case_on_newline

View File

@ -59,7 +59,7 @@ public struct Signature {
func makeUnsafeSignature() -> Result<UnsafeMutablePointer<git_signature>, NSError> {
var signature: UnsafeMutablePointer<git_signature>? = nil
let time = git_time_t(self.time.timeIntervalSince1970) // Unix epoch time
let offset: Int32 = Int32(timeZone.secondsFromGMT(for: self.time) / 60)
let offset = Int32(timeZone.secondsFromGMT(for: self.time) / 60)
let signatureResult = git_signature_new(&signature, name, email, time, offset)
guard signatureResult == GIT_OK.rawValue, let signatureUnwrap = signature else {
let err = NSError(gitError: signatureResult, pointOfFailure: "git_signature_new")