浏览代码

Fix build

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

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

122
 			// Filter out all files that are supposed to be ignored by the
122
 			// Filter out all files that are supposed to be ignored by the
123
 			// dashboard manager.
123
 			// dashboard manager.
124
 			if err = common.FilterIgnored(&mergedContents, cfg); err != nil {
124
 			if err = common.FilterIgnored(&mergedContents, cfg); err != nil {
125
-				return
125
+				return err
126
 			}
126
 			}
127
 
127
 
128
 			// Push the contents of the files that were added or modified to the
128
 			// Push the contents of the files that were added or modified to the

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

31
 	grafanaClient = client
31
 	grafanaClient = client
32
 	deleteRemoved = delRemoved
32
 	deleteRemoved = delRemoved
33
 
33
 
34
-	// Load the Git repository
34
+	// Load the Git repository.
35
+	var needsSync bool
35
 	repo, needsSync, err = git.NewRepository(cfg.Git)
36
 	repo, needsSync, err = git.NewRepository(cfg.Git)
36
 	if err != nil {
37
 	if err != nil {
37
 		return err
38
 		return err