]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
This path will never be executed. Remove it.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 19 Feb 2013 22:27:08 +0000 (17:27 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 19 Feb 2013 22:27:08 +0000 (17:27 -0500)
xonstat/util/xs_interceptor/xs_interceptor.go

index abffb8709089b6bd8cc7a8423cee6a7dfa897244..ddc8af80488c738c85cc9f9600155151db1bc1fa 100644 (file)
@@ -117,10 +117,7 @@ func serve(port int) {
        fmt.Printf("Serving on port %d...\n", port)\r
        addr := fmt.Sprintf(":%d", port)\r
   for true {\r
-    err := http.ListenAndServe(addr, nil)\r
-    if err == nil {\r
-      fmt.Println("got it!")\r
-    }\r
+    http.ListenAndServe(addr, nil)\r
     time.Sleep(100*time.Millisecond)\r
   }\r
 }\r