瀏覽代碼

testing continued

0xdcarns 3 年之前
父節點
當前提交
b961b6a1f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {