mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 18:10:16 +00:00
Fix various SwiftLint warnings.
This commit is contained in:
1 parent
d9216a3275
commit
9ff1bd9836
104 files changed
+365
-363
No files matched your search
@@ -11,9 +11,9 @@ import Account
|
||||
|
||||
@MainActor extension NSScriptCommand {
|
||||
func property(forKey key: String) -> Any? {
|
||||
if let evaluatedArguments = self.evaluatedArguments {
|
||||
if let evaluatedArguments = self.evaluatedArguments {
|
||||
if let props = evaluatedArguments["KeyDictionary"] as? [String: Any] {
|
||||
return props[key]
|
||||
return props[key]
|
||||
}
|
||||
}
|
||||
return nil
|
||||
@@ -26,7 +26,7 @@ import Account
|
||||
guard let newObjectClass = arguments["ObjectClass"] as? Int else {
|
||||
return false
|
||||
}
|
||||
guard (newObjectClass.fourCharCode == whatClass.fourCharCode) else {
|
||||
guard newObjectClass.fourCharCode == whatClass.fourCharCode else {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
@@ -42,9 +42,9 @@ import Account
|
||||
print("insertionLocation : \(insertionLocationDescriptor)")
|
||||
// insertion location can be a typeObjectSpecifier, e.g. 'in account "Acct"'
|
||||
// or a typeInsertionLocation, e.g. 'at end of folder "
|
||||
if (insertionLocationDescriptor.descriptorType == "insl".fourCharCode) {
|
||||
if insertionLocationDescriptor.descriptorType == "insl".fourCharCode {
|
||||
descriptorToConsider = insertionLocationDescriptor.forKeyword("kobj".fourCharCode)
|
||||
} else if ( insertionLocationDescriptor.descriptorType == "obj ".fourCharCode) {
|
||||
} else if insertionLocationDescriptor.descriptorType == "obj ".fourCharCode {
|
||||
descriptorToConsider = insertionLocationDescriptor
|
||||
}
|
||||
} else if let subjectDescriptor = appleEvent.attributeDescriptor(forKeyword: "subj".fourCharCode) {
|
||||
|
||||
Reference in new issue
Block a user