Brendan Abolivier hace 6 años
padre
commit
dce1c323d4
Firmado por: Brendan Abolivier <contact@brendanabolivier.com> ID clave GPG: 8EF1500759F70623
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1
    1
      src/pusher/poller/poller.go
  2. 2
    1
      src/pusher/webhook/webhook.go

+ 1
- 1
src/pusher/poller/poller.go Ver fichero

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

+ 2
- 1
src/pusher/webhook/webhook.go Ver fichero

@@ -31,7 +31,8 @@ func Setup(conf *config.Config, client *grafana.Client, delRemoved bool) (err er
31 31
 	grafanaClient = client
32 32
 	deleteRemoved = delRemoved
33 33
 
34
-	// Load the Git repository
34
+	// Load the Git repository.
35
+	var needsSync bool
35 36
 	repo, needsSync, err = git.NewRepository(cfg.Git)
36 37
 	if err != nil {
37 38
 		return err