Skip to content

Commit 0e51bc6

Browse files
committed
bitcoind: fix goconst linter
1 parent ab0743a commit 0e51bc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

btc/bitcoind.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const (
1919
FormatImportwallet = "bitcoin-importwallet"
2020
FormatDescriptors = "bitcoin-descriptors"
2121
FormatElectrum = "electrum"
22+
23+
PasteString = "# Paste the following lines into a command line window."
2224
)
2325

2426
type KeyExporter interface {
@@ -130,7 +132,7 @@ func SeedBirthdayToBlock(params *chaincfg.Params,
130132
type Cli struct{}
131133

132134
func (c *Cli) Header() string {
133-
return "# Paste the following lines into a command line window."
135+
return PasteString
134136
}
135137

136138
func (c *Cli) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params,
@@ -159,7 +161,7 @@ func (c *Cli) Trailer(birthdayBlock uint32) string {
159161
type CliWatchOnly struct{}
160162

161163
func (c *CliWatchOnly) Header() string {
162-
return "# Paste the following lines into a command line window."
164+
return PasteString
163165
}
164166

165167
func (c *CliWatchOnly) Format(hdKey *hdkeychain.ExtendedKey,
@@ -279,7 +281,7 @@ func (p *Electrum) Trailer(_ uint32) string {
279281
type Descriptors struct{}
280282

281283
func (d *Descriptors) Header() string {
282-
return "# Paste the following lines into a command line window."
284+
return PasteString
283285
}
284286

285287
func (d *Descriptors) Format(hdKey *hdkeychain.ExtendedKey,

0 commit comments

Comments
 (0)