fix(format): gofumt files

This commit is contained in:
jguer
2020-07-08 03:40:50 +02:00
parent a0cff2b622
commit e47c9584c1
11 changed files with 90 additions and 61 deletions

18
vcs.go
View File

@@ -20,13 +20,15 @@ import (
)
// Info contains the last commit sha of a repo
type vcsInfo map[string]shaInfos
type shaInfos map[string]shaInfo
type shaInfo struct {
Protocols []string `json:"protocols"`
Branch string `json:"branch"`
SHA string `json:"sha"`
}
type (
vcsInfo map[string]shaInfos
shaInfos map[string]shaInfo
shaInfo struct {
Protocols []string `json:"protocols"`
Branch string `json:"branch"`
SHA string `json:"sha"`
}
)
// createDevelDB forces yay to create a DB of the existing development packages
func createDevelDB(vcsFilePath string, alpmHandle *alpm.Handle) error {
@@ -245,7 +247,7 @@ func saveVCSInfo(vcsFilePath string) error {
if err != nil || string(marshalledinfo) == "null" {
return err
}
in, err := os.OpenFile(vcsFilePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
in, err := os.OpenFile(vcsFilePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
if err != nil {
return err
}