Skip to content

Commit

Permalink
Format code with gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
igoose1 committed Jan 23, 2024
1 parent 8808922 commit ae3ba41
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3.2.1
with:
go-version: 1.18
go-version: 1.21

- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func main() {
trustedDir string
)
verifyCommand := flag.NewFlagSet("-V", flag.ExitOnError)
// flag.BoolVar(&hashFlag, "H", false, "require input to be prehashed.")
verifyCommand.StringVar(&sigFile, "x", "", "signature file (default: <file>.minisig)")
verifyCommand.BoolVar(&outputFlag, "o", false, "output the file content after verification")
verifyCommand.StringVar(&file, "m", "", "file to verify.")
Expand All @@ -74,7 +73,7 @@ func main() {
if err != nil {
logger.Fatal(err)
}
trustedDir = filepath.Join(homedir, ".minisign/trusted")
trustedDir = filepath.Join(homedir, ".minisign", "trusted")
}

if len(os.Args) < 2 {
Expand Down
1 change: 1 addition & 0 deletions pkg/minitrust/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (b *Base) EnsureTrustedDir() error {
}
return nil
}

func (b *Base) getKeyPath(keyID [8]byte) string {
return filepath.Join(b.trustedDir, EncodeID(keyID)+".pub")
}
Expand Down
6 changes: 4 additions & 2 deletions pkg/minitrust/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import (
"testing"
)

const rawPubKey = "RWRWfuqg9DPmJzteqVmj5xSm7z1V0ZTNA66UGpF+5vdkUe8llEMWkC6n"
const pubKeyID = "27E633F4A0EA7E56"
const (
rawPubKey = "RWRWfuqg9DPmJzteqVmj5xSm7z1V0ZTNA66UGpF+5vdkUe8llEMWkC6n"
pubKeyID = "27E633F4A0EA7E56"
)

func mkdirTempHome(t *testing.T) string {
dir, err := os.MkdirTemp("", "test-minitrust-*")
Expand Down

0 comments on commit ae3ba41

Please sign in to comment.