remove unnecessary state (#32278)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user