Browse Source

Fix build

Brendan Abolivier 6 years ago
parent
commit
dce1c323d4
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      src/pusher/poller/poller.go
  2. 2
    1
      src/pusher/webhook/webhook.go

+ 1
- 1
src/pusher/poller/poller.go View File

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 View File

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