-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static var
to static let
#2642
static var
to static let
#2642
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
public struct PushProviderConfiguration: Codable { | ||
public static var providerConfigurationKey = "ha_configurations" | ||
public static let providerConfigurationKey = "ha_configurations" | ||
|
||
public var serverIdentifier: Identifier<Server> | ||
public var settingsKey: String | ||
Comment on lines
-4
to
-5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that cases like this - where it's a data type - shouldn't force the non-static members to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since there is no real impact now, I will merge this PR as-is, we can always change it to var on demand of course when needed to actually do something with the struct. |
||
public let serverIdentifier: Identifier<Server> | ||
public let settingsKey: String | ||
|
||
public init(serverIdentifier: Identifier<Server>, settingsKey: String) { | ||
self.serverIdentifier = serverIdentifier | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got these changes just by running the project 🤷