Explorar o código

testing continued

0xdcarns %!s(int64=3) %!d(string=hai) anos
pai
achega
b961b6a1f5
Modificáronse 1 ficheiros con 1 adicións e 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) {