浏览代码

Fix built + typo

父节点
当前提交
192189f53b
签署人:: Brendan Abolivier <contact@brendanabolivier.com> GPG 密钥 ID: 8EF1500759F70623
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2
    1
      src/grafana/dashboards.go
  2. 1
    1
      src/pusher/webhook.go

+ 2
- 1
src/grafana/dashboards.go 查看文件

@@ -167,7 +167,8 @@ func (c *Client) CreateOrUpdateDashboard(contentJSON []byte) (err error) {
167 167
 
168 168
 	if respBody.Status != "success" && isHttpUnknownError {
169 169
 		// Get the dashboard's slug for logging
170
-		slug, err := helpers.GetDashboardSlug(contentJSON)
170
+		var slug string
171
+		slug, err = helpers.GetDashboardSlug(contentJSON)
171 172
 		if err != nil {
172 173
 			return
173 174
 		}

+ 1
- 1
src/pusher/webhook.go 查看文件

@@ -109,7 +109,7 @@ func HandlePush(payload interface{}, header webhooks.Header) {
109 109
 			logrus.WithFields(logrus.Fields{
110 110
 				"error":    err,
111 111
 				"filename": fileToPush,
112
-			}).Error("Failed push the file to Grafana")
112
+			}).Error("Failed to push the file to Grafana")
113 113
 
114 114
 			continue
115 115
 		}