Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
therealmitchconnors committed Sep 10, 2019
1 parent 68f4136 commit 8e39cc4
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bool_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func TestBSAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"false"})
}
})
if len(bs) != 1 || bs[0]!= false {
if len(bs) != 1 || bs[0] != false {
t.Fatalf("Expected ss to be overwritten with 'false', but got: %v", bs)
}
}
Expand Down
2 changes: 1 addition & 1 deletion duration_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestDSAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3ns"})
}
})
if len(ds) != 1 || ds[0]!= time.Duration(3) {
if len(ds) != 1 || ds[0] != time.Duration(3) {
t.Fatalf("Expected ss to be overwritten with '3ns', but got: %v", ds)
}
}
Expand Down
2 changes: 1 addition & 1 deletion float32_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TestF32SAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3.1"})
}
})
if len(f32s) != 1 || f32s[0]!= 3.1 {
if len(f32s) != 1 || f32s[0] != 3.1 {
t.Fatalf("Expected ss to be overwritten with '3.1', but got: %v", f32s)
}
}
Expand Down
2 changes: 1 addition & 1 deletion float64_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestF64SAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3.1"})
}
})
if len(f64s) != 1 || f64s[0]!= 3.1 {
if len(f64s) != 1 || f64s[0] != 3.1 {
t.Fatalf("Expected ss to be overwritten with '3.1', but got: %v", f64s)
}
}
Expand Down
2 changes: 1 addition & 1 deletion int32_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestI32SAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3"})
}
})
if len(i32s) != 1 || i32s[0]!= 3 {
if len(i32s) != 1 || i32s[0] != 3 {
t.Fatalf("Expected ss to be overwritten with '3.1', but got: %v", i32s)
}
}
Expand Down
2 changes: 1 addition & 1 deletion int64_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestI64SAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3"})
}
})
if len(i64s) != 1 || i64s[0]!= 3 {
if len(i64s) != 1 || i64s[0] != 3 {
t.Fatalf("Expected ss to be overwritten with '3.1', but got: %v", i64s)
}
}
Expand Down
2 changes: 1 addition & 1 deletion string_array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func TestSAAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3ns"})
}
})
if len(sa) != 1 || sa[0]!= "3ns" {
if len(sa) != 1 || sa[0] != "3ns" {
t.Fatalf("Expected ss to be overwritten with '3ns', but got: %v", sa)
}
}
Expand Down
2 changes: 1 addition & 1 deletion string_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *stringSliceValue) Replace(val []string) error {
}

func (s *stringSliceValue) GetSlice() []string {
return *s.value
return *s.value
}

func stringSliceConv(sval string) (interface{}, error) {
Expand Down
4 changes: 2 additions & 2 deletions string_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func TestSSAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"three"})
}
})
if len(ss) != 1 || ss[0]!= "three" {
if len(ss) != 1 || ss[0] != "three" {
t.Fatalf("Expected ss to be overwritten with 'three', but got: %s", ss)
}
}
}
2 changes: 1 addition & 1 deletion uint_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestUISAsSliceValue(t *testing.T) {
_ = val.Replace([]string{"3"})
}
})
if len(uis) != 1 || uis[0]!= 3 {
if len(uis) != 1 || uis[0] != 3 {
t.Fatalf("Expected ss to be overwritten with '3.1', but got: %v", uis)
}
}
Expand Down

0 comments on commit 8e39cc4

Please sign in to comment.