aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherealmitchconnors <[email protected]>2019-09-10 09:45:17 -0700
committertherealmitchconnors <[email protected]>2019-09-10 09:45:17 -0700
commit8e39cc44d9bd06ee2d9ef3109c93809072d5e551 (patch)
treebc1f50b1da6d48d1ecd8446371167b934bc56775
parent68f4136ecf4c77dccc4d7003f5020fafa4833534 (diff)
gofmt
-rw-r--r--bool_slice_test.go2
-rw-r--r--duration_slice_test.go2
-rw-r--r--float32_slice_test.go2
-rw-r--r--float64_slice_test.go2
-rw-r--r--int32_slice_test.go2
-rw-r--r--int64_slice_test.go2
-rw-r--r--string_array_test.go2
-rw-r--r--string_slice.go2
-rw-r--r--string_slice_test.go4
-rw-r--r--uint_slice_test.go2
10 files changed, 11 insertions, 11 deletions
diff --git a/bool_slice_test.go b/bool_slice_test.go
index 826bc39..3c5a274 100644
--- a/bool_slice_test.go
+++ b/bool_slice_test.go
@@ -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)
}
}
diff --git a/duration_slice_test.go b/duration_slice_test.go
index 22bca93..651fbd8 100644
--- a/duration_slice_test.go
+++ b/duration_slice_test.go
@@ -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)
}
}
diff --git a/float32_slice_test.go b/float32_slice_test.go
index 1e9a942..997ce5c 100644
--- a/float32_slice_test.go
+++ b/float32_slice_test.go
@@ -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)
}
}
diff --git a/float64_slice_test.go b/float64_slice_test.go
index 011bbdd..43778ef 100644
--- a/float64_slice_test.go
+++ b/float64_slice_test.go
@@ -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)
}
}
diff --git a/int32_slice_test.go b/int32_slice_test.go
index d2b49e4..809c563 100644
--- a/int32_slice_test.go
+++ b/int32_slice_test.go
@@ -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)
}
}
diff --git a/int64_slice_test.go b/int64_slice_test.go
index daf4bd4..09805c7 100644
--- a/int64_slice_test.go
+++ b/int64_slice_test.go
@@ -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)
}
}
diff --git a/string_array_test.go b/string_array_test.go
index 21f3633..3c6d595 100644
--- a/string_array_test.go
+++ b/string_array_test.go
@@ -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)
}
}
diff --git a/string_slice.go b/string_slice.go
index 74b934b..13d0572 100644
--- a/string_slice.go
+++ b/string_slice.go
@@ -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) {
diff --git a/string_slice_test.go b/string_slice_test.go
index 9a7e246..9692461 100644
--- a/string_slice_test.go
+++ b/string_slice_test.go
@@ -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)
}
-} \ No newline at end of file
+}
diff --git a/uint_slice_test.go b/uint_slice_test.go
index f5b5bfc..d0da4d0 100644
--- a/uint_slice_test.go
+++ b/uint_slice_test.go
@@ -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)
}
}