mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
Remove unused variables
This commit is contained in:
parent
2c27a7753d
commit
e385643f30
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ func handler(w http.ResponseWriter, r *http.Request, dpa *DPA) {
|
||||||
manifestReader := dpa.Retrieve(key)
|
manifestReader := dpa.Retrieve(key)
|
||||||
// TODO check size for oversized manifests
|
// TODO check size for oversized manifests
|
||||||
manifest := make([]byte, manifestReader.Size())
|
manifest := make([]byte, manifestReader.Size())
|
||||||
n, err := manifestReader.Read(manifest)
|
_, err := manifestReader.Read(manifest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
dpaLogger.Debugf("Swarm: Manifest %s not found.", name)
|
dpaLogger.Debugf("Swarm: Manifest %s not found.", name)
|
||||||
http.Error(w, err.Error(), http.StatusNotFound)
|
http.Error(w, err.Error(), http.StatusNotFound)
|
||||||
|
|
@ -123,7 +123,7 @@ func handler(w http.ResponseWriter, r *http.Request, dpa *DPA) {
|
||||||
key = nil
|
key = nil
|
||||||
prefix := 0
|
prefix := 0
|
||||||
status := int16(404)
|
status := int16(404)
|
||||||
for i, entry := range manifestEntries {
|
for _, entry := range manifestEntries {
|
||||||
if !hashMatcher.MatchString(entry.Hash) {
|
if !hashMatcher.MatchString(entry.Hash) {
|
||||||
// hash is mandatory
|
// hash is mandatory
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue