Skip to content

Commit

Permalink
netmap: Fix unused linter
Browse files Browse the repository at this point in the history
With `nolint` of course. Seems like `unused` ignores funcs that are marked with
`nolint` and does not see old keys usage.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Nov 27, 2023
1 parent 8481351 commit 889c64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netmap/netmap_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ const (
snapshotEpoch = "snapshotEpoch"
snapshotBlockKey = "snapshotBlock"

// nolint:unused // used only in _deploy func which is nolinted too
containerContractKey = "containerScriptHash"
balanceContractKey = "balanceScriptHash"
// nolint:unused // used only in _deploy func which is nolinted too
balanceContractKey = "balanceScriptHash"

newEpochSubscribersPrefix = "e"
cleanupEpochMethod = "newEpoch"
Expand Down

0 comments on commit 889c64c

Please sign in to comment.