Skip to content

Commit eaa6073

Browse files
committed
removed unnecessary cast
1 parent 2c84e28 commit eaa6073

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

service/api/specs/specversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var FLAG_V1_0 = flagSpecs[0]
1616
var FLAG_V1_1 = flagSpecs[1]
1717
var FLAG_V1_2 = flagSpecs[2]
1818

19-
var Latest = string(flagSpecs[len(flagSpecs)-1])
19+
var Latest = flagSpecs[len(flagSpecs)-1]
2020

2121
// Match returns the spec version if it is valid, otherwise it returns nil
2222
func Match(version string) *string {

service/api/specs/splitversionfilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestParseAndValidate(t *testing.T) {
2828
}
2929
}
3030

31-
func TestSplitVersionFilter(t *testing.T) {
31+
func TestsplitVersionFilter(t *testing.T) {
3232
filter := NewSplitVersionFilter()
3333
shouldFilter := filter.ShouldFilter(matchers.MatcherTypeBetweenSemver, FLAG_V1_0)
3434
if !shouldFilter {

0 commit comments

Comments
 (0)