Skip to content

Commit e4fdb9d

Browse files
committed
Fix ineffassign
1 parent c504ae0 commit e4fdb9d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
version: "2"
22
linters:
3-
default: none
3+
default: none
44
enable:
5+
- ineffassign
56
- unused
67
- staticcheck
78
settings:

rocketpool-cli/node/utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ func promptTimezone() string {
177177
// Prompt for country
178178
country := ""
179179
for {
180-
timezone = ""
181180
country = prompt.Prompt("Please enter a country / continent from the list above:", "^.+$", "Please enter a country / continent from the list above:")
182181

183182
exists := slices.Contains(countryNames, country)
@@ -231,7 +230,6 @@ func promptTimezone() string {
231230
// Prompt for region
232231
region := ""
233232
for {
234-
timezone = ""
235233
region = prompt.Prompt("Please enter a region from the list above:", "^.+$", "Please enter a region from the list above:")
236234

237235
exists := slices.Contains(regionNames, region)

rocketpool/watchtower/submit-rpl-price.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (t *submitRplPrice) run(state *state.NetworkState) error {
381381
var lastSubmissionSlotTimestamp uint64
382382
// Check if the node has submitted prices for the latest block
383383
if lastSubmissionBlock != 0 {
384-
lastSubmissionEvent := network.PriceUpdatedEvent{}
384+
var lastSubmissionEvent network.PriceUpdatedEvent
385385
eventFound, lastSubmissionEvent, err = network.GetPriceUpdatedEvent(t.rp, lastSubmissionBlock, nil)
386386
if err != nil {
387387
t.log.Printlnf("Error getting price submission event for block %d", lastSubmissionBlock)

0 commit comments

Comments
 (0)