[Lint] Use a case-less enum for a type used only to host static members

This commit is contained in:
Matt Rubin 2018-09-21 01:47:23 -04:00
parent 6c27045ee8
commit ce2443bb3b
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ opt_in_rules:
- closure_end_indentation
- closure_spacing
- conditional_returns_on_newline
- convenience_type
- empty_count
- explicit_init
- fatal_error_message

View File

@ -15,7 +15,7 @@ final class Fixtures {
// MARK: Lifecycle
class var sharedInstance: Fixtures {
struct Singleton {
enum Singleton {
static let instance = Fixtures()
}
return Singleton.instance