From 097b4fae68285a6ac93cca6acedfc9969a22db20 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 16 Jan 2023 09:55:07 +0200 Subject: [PATCH] lncli+docs: skip gomnd check in switch statement --- cmd/lncli/cmd_payments.go | 1 + docs/release-notes/release-notes-0.16.0.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmd/lncli/cmd_payments.go b/cmd/lncli/cmd_payments.go index 923f65b4c..a7ac1802d 100644 --- a/cmd/lncli/cmd_payments.go +++ b/cmd/lncli/cmd_payments.go @@ -1653,6 +1653,7 @@ func clearLines(count int) { // ordinalNumber returns the ordinal number as a string of a number. func ordinalNumber(num uint32) string { + //nolint:gomnd switch num { case 1: return "1st" diff --git a/docs/release-notes/release-notes-0.16.0.md b/docs/release-notes/release-notes-0.16.0.md index 3e5b81825..c6f5f8170 100644 --- a/docs/release-notes/release-notes-0.16.0.md +++ b/docs/release-notes/release-notes-0.16.0.md @@ -208,6 +208,8 @@ certain large transactions](https://github.com/lightningnetwork/lnd/pull/7100). * [Fixed a flake in the TestMailBoxAddExpiry unit test](https://github.com/lightningnetwork/lnd/pull/7314). +* [Fix gomnd linter error](https://github.com/lightningnetwork/lnd/pull/7325) + ## `lncli` * [Add an `insecure` flag to skip tls auth as well as a `metadata` string slice