run go fmt

This commit is contained in:
ryan 2017-10-18 23:49:33 +02:00
parent 4440133f4d
commit fb9c714a9a

View File

@ -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")
}
}
}