Commit 88a30098 authored by Marten Seemann's avatar Marten Seemann

remove unneeded type assertion

parent 4497b283
...@@ -61,7 +61,7 @@ func (w *wrapper) Peek() Elem { ...@@ -61,7 +61,7 @@ func (w *wrapper) Peek() Elem {
if len(w.heapinterface.elems) == 0 { if len(w.heapinterface.elems) == 0 {
return nil return nil
} }
return w.heapinterface.elems[0].(Elem) return w.heapinterface.elems[0]
} }
func (w *wrapper) Remove(index int) Elem { func (w *wrapper) Remove(index int) Elem {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment