Update Defaults.swift

This commit is contained in:
Sindre Sorhus 2022-12-08 14:43:50 +01:00 committed by GitHub
parent e6eaaea7fb
commit 828186a46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -51,8 +51,11 @@ extension Defaults {
@_alwaysEmitIntoClient
fileprivate init(name: String, suite: UserDefaults) {
runtimeWarn(isValidKeyPath(name: name),
"The key name must be ASCII, not start with @, and cannot contain a dot (.).")
runtimeWarn(
isValidKeyPath(name: name),
"The key name must be ASCII, not start with @, and cannot contain a dot (.)."
)
self.name = name
self.suite = suite
}