Explorar el Código

testing continued

0xdcarns hace 3 años
padre
commit
b961b6a1f5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {