remove unnecessary state (#32278)

This commit is contained in:
Will Browne
2021-03-29 14:22:56 +02:00
committed by GitHub
parent f37c8c10c5
commit 1d7f155c92
5 changed files with 3 additions and 18 deletions

View File

@ -115,7 +115,7 @@ func (m *manager) getAWSEnvironmentVariables() []string {
func (m *manager) GetDataPlugin(pluginID string) interface{} {
plugin := m.plugins[pluginID]
if plugin == nil || !plugin.CanHandleDataQueries() {
if plugin == nil {
return nil
}

View File

@ -337,10 +337,6 @@ func (tp *testPlugin) Logger() log.Logger {
return tp.logger
}
func (tp *testPlugin) CanHandleDataQueries() bool {
return false
}
func (tp *testPlugin) Start(ctx context.Context) error {
tp.mutex.Lock()
defer tp.mutex.Unlock()