Browse Source

run go fmt

ryan 8 years ago
parent
commit
fb9c714a9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/api/pluginproxy/ds_proxy.go

+ 2 - 2
pkg/api/pluginproxy/ds_proxy.go

@@ -166,8 +166,8 @@ func (proxy *DataSourceProxy) getDirector() func(req *http.Request) {
 func (proxy *DataSourceProxy) validateRequest() error {
 	if proxy.ds.Type == m.DS_INFLUXDB {
 		if proxy.ctx.Query("db") != proxy.ds.Database {
-			if(!proxy.ds.JsonData.Get("allowDatabaseQuery").MustBool(false)) {
-				return errors.New("Datasource is not configured to allow this database");
+			if !proxy.ds.JsonData.Get("allowDatabaseQuery").MustBool(false) {
+				return errors.New("Datasource is not configured to allow this database")
 			}
 		}
 	}