Selaa lähdekoodia

Merge pull request #22 from gpaul/master

go vet: remove unreachable code
Brad Fitzpatrick 12 vuotta sitten
vanhempi
commit
4faecadd4f
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      memcache/memcache.go

+ 0 - 1
memcache/memcache.go

@@ -476,7 +476,6 @@ func parseGetResponse(r *bufio.Reader, cb func(*Item)) error {
 		it.Value = it.Value[:size]
 		cb(it)
 	}
-	panic("unreached")
 }
 
 // scanGetResponseLine populates it and returns the declared size of the item.