Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: quick fix typo in error msg #328

Merged
merged 1 commit into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *SigningKeys) Get(keyName string) (KeySuite, error) {
func (s *SigningKeys) GetDefault() (KeySuite, error) {
if s.Default == nil {
return KeySuite{}, errors.New("default signing key not set." +
" Please set default singing key or specify a key name")
" Please set default signing key or specify a key name")
}

return s.Get(*s.Default)
Expand Down
4 changes: 2 additions & 2 deletions config/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ func TestLoadSigningKeysInfo(t *testing.T) {
}

if !reflect.DeepEqual(sampleSigningKeysInfo.Default, got.Default) {
t.Fatal("singingKeysInfo test failed.")
t.Fatal("signingKeysInfo test failed.")
}

if !reflect.DeepEqual(sampleSigningKeysInfo.Keys, got.Keys) {
t.Fatal("singingKeysInfo test failed.")
t.Fatal("signingKeysInfo test failed.")
}
})

Expand Down