mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 06:12:35 +09:00
refactor(runtime): simplify AssetDir() (#2761)
* refactor(runtime): simplify AssetDir() * test(runtime): remove cwd checks
This commit is contained in:
@@ -22,7 +22,7 @@ func AssetDir(name string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
names := make([]string, len(entries), len(entries))
|
||||
names := make([]string, len(entries))
|
||||
for i, entry := range entries {
|
||||
names[i] = entry.Name()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user