Satisfy the now-effective lll limit and the modernize linter

This commit is contained in:
2026-10-31 13:22:44 -07:00
parent 897dc9aced
commit e1b385f847
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ func (a *app) loadConfig(cmd *cobra.Command, _ []string) error {
err := config.ReadInConfig() err := config.ReadInConfig()
var notFound viper.ConfigFileNotFoundError _, isNotFound := errors.AsType[viper.ConfigFileNotFoundError](err)
if errors.As(err, &notFound) { if isNotFound {
a.config = config a.config = config
return nil return nil
+4 -2
View File
@@ -37,9 +37,11 @@ const (
// the BIP85 derivation was implemented. If this test starts failing, the // the BIP85 derivation was implemented. If this test starts failing, the
// derivation has changed and existing keys are no longer reproducible. // derivation has changed and existing keys are no longer reproducible.
const ( const (
vectorPublicKeyHex = "dbef711b3f340d336eb99cd8d0dbd491e1edce8eaad71cd66be228032a9a743e" vectorPublicKeyHex = "dbef711b3f340d336eb99cd8d0dbd491" +
"e1edce8eaad71cd66be228032a9a743e"
vectorPrivateKeyHex = "ea3ceb0b02ee8e587779c63f4b7b3a21e950a213f1ec53cab608d13e8796e6dc" vectorPrivateKeyHex = "ea3ceb0b02ee8e587779c63f4b7b3a21" +
"e950a213f1ec53cab608d13e8796e6dc"
) )
func TestSpecMnemonicProducesSpecMasterKey(t *testing.T) { func TestSpecMnemonicProducesSpecMasterKey(t *testing.T) {