Parcourir la source

testing continued

0xdcarns il y a 3 ans
Parent
commit
b961b6a1f5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      logic/nodes.go

+ 1 - 1
logic/nodes.go

@@ -16,7 +16,7 @@ import (
 
 // GetNetworkNodes - gets the nodes of a network
 func GetNetworkNodes(network string) ([]models.Node, error) {
-	var nodes []models.Node
+	var nodes = []models.Node{}
 	collection, err := database.FetchRecords(database.NODES_TABLE_NAME)
 	if err != nil {
 		if database.IsEmptyRecord(err) {