mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
[Lint] Remove redundant type annotation
This commit is contained in:
parent
dcbbf4cc53
commit
3a38e20b0c
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user