Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -56,7 +56,7 @@ nfpms:
{{- end }} {{- end }}
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch" description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
homepage: 'https://gitea.elara.ws/Elara6331/itd' homepage: 'https://gitea.elara.ws/Elara6331/itd'
maintainer: 'Elara Ivy <elara@elara.ws>' maintainer: 'Elara Musayelyan <elara@elara.ws>'
license: GPLv3 license: GPLv3
formats: formats:
- apk - apk
@ -79,7 +79,7 @@ aurs:
homepage: 'https://gitea.elara.ws/Elara6331/itd' homepage: 'https://gitea.elara.ws/Elara6331/itd'
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch" description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
maintainers: maintainers:
- 'Elara Ivy <elara@elara.ws>' - 'Elara Musayelyan <elara@elara.ws>'
license: GPLv3 license: GPLv3
private_key: '{{ .Env.AUR_KEY }}' private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/itd-bin.git' git_url: 'ssh://aur@aur.archlinux.org/itd-bin.git'

View File

@ -42,10 +42,7 @@ func (c *FSClient) Mkdir(ctx context.Context, paths ...string) error {
func (c *FSClient) ReadDir(ctx context.Context, dir string) ([]FileInfo, error) { func (c *FSClient) ReadDir(ctx context.Context, dir string) ([]FileInfo, error) {
res, err := c.client.ReadDir(ctx, &rpc.PathRequest{Path: dir}) res, err := c.client.ReadDir(ctx, &rpc.PathRequest{Path: dir})
if err != nil { return convertEntries(res.Entries), err
return nil, err
}
return convertEntries(res.Entries), nil
} }
func convertEntries(e []*rpc.FileInfo) []FileInfo { func convertEntries(e []*rpc.FileInfo) []FileInfo {