Skip to content

Commit

Permalink
fix: quick fix typo in error msg (#328)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
  • Loading branch information
Two-Hearts authored Jul 1, 2023
1 parent 432c931 commit 2882baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 2882baf

Please sign in to comment.