Skip to content

Commit 91be4cd

Browse files
committed
fix codenarc
1 parent e6f47f2 commit 91be4cd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

remote-config/remote-config-core/src/test/groovy/datadog/remoteconfig/state/ProductStateSpecification.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package datadog.remoteconfig.state
33
import datadog.remoteconfig.PollingRateHinter
44
import datadog.remoteconfig.Product
55
import datadog.remoteconfig.ReportableException
6-
import datadog.remoteconfig.tuf.RemoteConfigRequest
76
import datadog.remoteconfig.tuf.RemoteConfigResponse
87
import spock.lang.Specification
98

@@ -113,7 +112,6 @@ class ProductStateSpecification extends Specification {
113112
listener.operations.findAll { it.startsWith('accept:') }.size() == 2
114113

115114
and: 'removes come before accepts'
116-
def firstRemoveIdx = listener.operations.findIndexOf { it.startsWith('remove:') }
117115
def lastRemoveIdx = listener.operations.findLastIndexOf { it.startsWith('remove:') }
118116
def firstAcceptIdx = listener.operations.findIndexOf { it.startsWith('accept:') }
119117
lastRemoveIdx < firstAcceptIdx

0 commit comments

Comments
 (0)