mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 00:22:36 +08:00
chore(perf): Pre-allocate where possible (enable prealloc linter) (#88952)
* chore(perf): Pre-allocate where possible (enable prealloc linter) Signed-off-by: Dave Henderson <dave.henderson@grafana.com> * fix TestAlertManagers_buildRedactedAMs Signed-off-by: Dave Henderson <dave.henderson@grafana.com> * prealloc a slice that appeared after rebase Signed-off-by: Dave Henderson <dave.henderson@grafana.com> --------- Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
@ -46,7 +46,7 @@ func TestDirAsLocalSources(t *testing.T) {
|
||||
{
|
||||
name: "Directory with no subdirectories",
|
||||
pluginsPath: filepath.Join(testdataDir, "pluginRootWithDist", "datasource"),
|
||||
expected: nil,
|
||||
expected: []*LocalSource{},
|
||||
},
|
||||
{
|
||||
name: "Directory with a symlink to a directory",
|
||||
|
Reference in New Issue
Block a user