Commit 2b1ce8e9 authored by Łukasz Magiera's avatar Łukasz Magiera

misc: Remove some dead code

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 4dac8e9a
......@@ -62,7 +62,7 @@ func (p Path) String() string {
// IsJustAKey returns true if the path is of the form <key> or /ipfs/<key>.
func (p Path) IsJustAKey() bool {
parts := p.Segments()
return (len(parts) == 2 && parts[0] == "ipfs")
return len(parts) == 2 && parts[0] == "ipfs"
}
// PopLastSegment returns a new Path without its final segment, and the final
......
......@@ -22,7 +22,7 @@ func TestPathParsing(t *testing.T) {
for p, expected := range cases {
_, err := ParsePath(p)
valid := (err == nil)
valid := err == nil
if valid != expected {
t.Fatalf("expected %s to have valid == %t", p, expected)
}
......
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