Procházet zdrojové kódy

Fixed compilation error.

Damian Kołakowski před 12 roky
rodič
revize
7da65b4ea9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Swifter/HttpServer.swift

+ 2 - 2
Swifter/HttpServer.swift

@@ -11,7 +11,7 @@ enum ResponseStatus {
     case OK(String)
     case NotFound
 
-    func numericValue() {
+    func numericValue() -> Int {
         switch self {
             case .OK(_):
                 return 200
@@ -20,7 +20,7 @@ enum ResponseStatus {
         }
     }
 
-    func textValue() {
+    func textValue() -> String {
         switch self {
             case .OK(let text):
                 return text