Skip to content

Commit 4ccd091

Browse files
committed
Use map literal syntax
1 parent e655f69 commit 4ccd091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/modproxy/testmodproxy/testmodproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
func LoadFS(rootDir string) (fs.FS, error) {
4343
fsys := fstest.MapFS{}
4444
// Track versions per module for generating list files
45-
versions := make(map[string][]string)
45+
versions := map[string][]string{}
4646
// Walk the root directory to find all modules
4747
err := filepath.WalkDir(rootDir, func(path string, d fs.DirEntry, err error) error {
4848
if err != nil {

0 commit comments

Comments
 (0)