Make whitespace formatting tweaks.
This commit is contained in:
parent
c3b4e67e15
commit
f2d98c9581
|
@ -148,7 +148,6 @@ struct AppDefaults {
|
||||||
}
|
}
|
||||||
|
|
||||||
static func actualFontSize(for fontSize: FontSize) -> CGFloat {
|
static func actualFontSize(for fontSize: FontSize) -> CGFloat {
|
||||||
|
|
||||||
switch fontSize {
|
switch fontSize {
|
||||||
case .small:
|
case .small:
|
||||||
return NSFont.systemFontSize
|
return NSFont.systemFontSize
|
||||||
|
@ -174,7 +173,6 @@ private extension AppDefaults {
|
||||||
}
|
}
|
||||||
|
|
||||||
static func fontSize(for key: String) -> FontSize {
|
static func fontSize(for key: String) -> FontSize {
|
||||||
|
|
||||||
// Punted till after 1.0.
|
// Punted till after 1.0.
|
||||||
return .medium
|
return .medium
|
||||||
|
|
||||||
|
@ -217,7 +215,6 @@ private extension AppDefaults {
|
||||||
}
|
}
|
||||||
|
|
||||||
static func sortDirection(for key:String) -> ComparisonResult {
|
static func sortDirection(for key:String) -> ComparisonResult {
|
||||||
|
|
||||||
let rawInt = int(for: key)
|
let rawInt = int(for: key)
|
||||||
if rawInt == ComparisonResult.orderedAscending.rawValue {
|
if rawInt == ComparisonResult.orderedAscending.rawValue {
|
||||||
return .orderedAscending
|
return .orderedAscending
|
||||||
|
@ -226,7 +223,6 @@ private extension AppDefaults {
|
||||||
}
|
}
|
||||||
|
|
||||||
static func setSortDirection(for key: String, _ value: ComparisonResult) {
|
static func setSortDirection(for key: String, _ value: ComparisonResult) {
|
||||||
|
|
||||||
if value == .orderedAscending {
|
if value == .orderedAscending {
|
||||||
setInt(for: key, ComparisonResult.orderedAscending.rawValue)
|
setInt(for: key, ComparisonResult.orderedAscending.rawValue)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue