Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed May 23, 2024
1 parent 6be092b commit 96db102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/melt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
Foreground(lipgloss.AdaptiveColor{Light: "#FF5E8E", Dark: "#FF5E8E"}).
Background(lipgloss.AdaptiveColor{Light: completeColor("#ECECEC", "255", "7"), Dark: "#1F1F1F"}).
Padding(0, 1)
mnemonicStyle = baseStyle.Copy().
mnemonicStyle = baseStyle.
Foreground(violet).
Background(lipgloss.AdaptiveColor{Light: completeColor("#EEEBFF", "255", "7"), Dark: completeColor("#1B1731", "235", "8")}).
Padding(1, 2) //nolint: gomnd
Expand Down Expand Up @@ -317,7 +317,7 @@ func getWidth(max int) int {
}

func renderBlock(w io.Writer, s lipgloss.Style, width int, str string) {
_, _ = io.WriteString(w, s.Copy().Width(width).Render(str))
_, _ = io.WriteString(w, s.Width(width).Render(str))
_, _ = io.WriteString(w, "\n")
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/melt/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestBackupRestoreKnownKey(t *testing.T) {
var b bytes.Buffer
is.NoErr(restore(expectedMnemonic, staticPass(nil), restoreToWriter(&b)))

k, err := ssh.ParsePrivateKey([]byte(b.String()))
k, err := ssh.ParsePrivateKey(b.Bytes())
is.NoErr(err)

is.Equal(expectedFingerprint, ssh.FingerprintSHA256(k.PublicKey()))
Expand Down

0 comments on commit 96db102

Please sign in to comment.