From b4551f83fb6af15c25a3cf98cc6813186228264c Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sun, 5 Jul 2020 22:59:03 +0200 Subject: [PATCH] Enable SwiftLint rule 'redundant_type_annotation' and fix all violations --- .swiftlint.yml | 2 +- passExtension/Crypto/PGPAgent.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 32604df..fc35b2f 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -144,7 +144,7 @@ whitelist_rules: - redundant_optional_initialization - redundant_set_access_control - redundant_string_enum_value -# - redundant_type_annotation + - redundant_type_annotation - redundant_void_return # - required_deinit - required_enum_case diff --git a/passExtension/Crypto/PGPAgent.swift b/passExtension/Crypto/PGPAgent.swift index e34d826..24608b6 100644 --- a/passExtension/Crypto/PGPAgent.swift +++ b/passExtension/Crypto/PGPAgent.swift @@ -7,7 +7,7 @@ // public class PGPAgent { - public static let shared: PGPAgent = PGPAgent() + public static let shared = PGPAgent() private let keyStore: KeyStore private var pgpInterface: PGPInterface?