Skip to content

Commit

Permalink
Remove superfluous nil checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJo committed Oct 2, 2024
1 parent 18568a7 commit 13e93ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (path *simplePath) Nodes() (nodes []Node) {

nodes = append(nodes, path.start)

if path.relations == nil || len(path.relations) == 0 {
if len(path.relations) == 0 {
return
}

Expand All @@ -51,7 +51,7 @@ func (path *simplePath) Items() []PropertyContainer {
items := make([]PropertyContainer, 0)
items = append(items, path.start)

if path.relations == nil || len(path.relations) == 0 {
if len(path.relations) == 0 {
return items
}

Expand Down

0 comments on commit 13e93ae

Please sign in to comment.