• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revisionae580a64b8a5bc0eb1c8c375d52bcc204f230787 (tree)
Time2018-08-13 15:44:27
Authormasakih <masakih@user...>
Commitermasakih

Log Message

Optional.none を nil表記に変更

Change Summary

Incremental Difference

--- a/KCD/BattleInformationViewController.swift
+++ b/KCD/BattleInformationViewController.swift
@@ -53,7 +53,7 @@ class BattleInformationViewController: NSViewController {
5353
5454 case let area?: mapArea = "\(area)"
5555
56- case .none: return nil
56+ case nil: return nil
5757
5858 }
5959
--- a/KCD/DefaultKey.swift
+++ b/KCD/DefaultKey.swift
@@ -92,7 +92,7 @@ final class DefaultKey<T>: DefaultKeys {
9292
9393 switch rawAlternativeValue {
9494
95- case .none: fatalError("DefaultKey (\(self)) has no alternative value.")
95+ case nil: fatalError("DefaultKey (\(self)) has no alternative value.")
9696
9797 case let .some(value): return value
9898
--- a/KCD/DockInformationFutures.swift
+++ b/KCD/DockInformationFutures.swift
@@ -47,7 +47,7 @@ func createDockInformationFuture<T: DockInformationFutureCreatable>(number: Int)
4747
4848 guard T.alreadyHasData(for: number) else {
4949
50- return .none
50+ return nil
5151 }
5252
5353 guard let status = T.init(number: number) else {
--- a/KCD/Fleet.swift
+++ b/KCD/Fleet.swift
@@ -73,7 +73,7 @@ final class Fleet: NSObject {
7373
7474 guard let deck = self.store.sync(execute: { self.store.deck(by: number) }) else {
7575
76- return .none
76+ return nil
7777 }
7878
7979 return deck
--- a/KCD/Future.swift
+++ b/KCD/Future.swift
@@ -240,7 +240,7 @@ extension Future {
240240
241241 case .error(let e)?: return Future<U>(e)
242242
243- case .none: fatalError("Future not complete")
243+ case nil: fatalError("Future not complete")
244244
245245 }
246246 }
Show on old repository browser