Chore: Fix various spelling errors in back-end code (#25241)
* Chore: Fix various spelling errors in back-end code Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com> Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>>
This commit is contained in:
co-authored by
Sofia Papagiannaki
Josh Soref
parent
13787294c6
commit
07582a8e85
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func ComposePluginStartCommmand(executable string) string {
|
||||
func ComposePluginStartCommand(executable string) string {
|
||||
os := strings.ToLower(runtime.GOOS)
|
||||
arch := runtime.GOARCH
|
||||
extension := ""
|
||||
|
||||
@@ -51,7 +51,7 @@ func TestPluginDashboards(t *testing.T) {
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Convey("should return 2 dashboarrd", func() {
|
||||
Convey("should return 2 dashboards", func() {
|
||||
So(len(dashboards), ShouldEqual, 2)
|
||||
})
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string, backend
|
||||
}
|
||||
|
||||
if p.Backend {
|
||||
cmd := ComposePluginStartCommmand(p.Executable)
|
||||
cmd := ComposePluginStartCommand(p.Executable)
|
||||
fullpath := path.Join(p.PluginDir, cmd)
|
||||
descriptor := backendplugin.NewBackendPluginDescriptor(p.Id, fullpath, backendplugin.PluginStartFuncs{
|
||||
OnLegacyStart: p.onLegacyPluginStart,
|
||||
|
||||
@@ -32,7 +32,7 @@ func (r *RendererPlugin) Load(decoder *json.Decoder, pluginDir string, backendPl
|
||||
|
||||
r.backendPluginManager = backendPluginManager
|
||||
|
||||
cmd := ComposePluginStartCommmand("plugin_start")
|
||||
cmd := ComposePluginStartCommand("plugin_start")
|
||||
fullpath := path.Join(r.PluginDir, cmd)
|
||||
descriptor := backendplugin.NewRendererPluginDescriptor(r.Id, fullpath, backendplugin.PluginStartFuncs{
|
||||
OnLegacyStart: r.onLegacyPluginStart,
|
||||
|
||||
@@ -35,7 +35,7 @@ func (p *TransformPlugin) Load(decoder *json.Decoder, pluginDir string, backendP
|
||||
return err
|
||||
}
|
||||
|
||||
cmd := ComposePluginStartCommmand(p.Executable)
|
||||
cmd := ComposePluginStartCommand(p.Executable)
|
||||
fullpath := path.Join(p.PluginDir, cmd)
|
||||
descriptor := backendplugin.NewBackendPluginDescriptor(p.Id, fullpath, backendplugin.PluginStartFuncs{
|
||||
OnStart: p.onPluginStart,
|
||||
|
||||
Reference in New Issue
Block a user