Skip to content

Commit

Permalink
remove unnecessary ()
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Yacob <marcos@scytale.io>
  • Loading branch information
MarcosDY committed Dec 19, 2018
1 parent 1ea945f commit 191955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/plugin/datastore/sql/sql.go
Expand Up @@ -667,7 +667,7 @@ func listAttestedNodes(tx *gorm.DB, req *datastore.ListAttestedNodesRequest) (*d
}

if p != nil && p.PageSize > 0 && len(models) > 0 {
lastEntry := (models)[len(models)-1]
lastEntry := models[len(models)-1]
p.Token = fmt.Sprint(lastEntry.ID)
}

Expand Down

0 comments on commit 191955b

Please sign in to comment.