aboutsummaryrefslogtreecommitdiffstats
path: root/cshared/std_cshared.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2016-11-07 20:32:00 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-11-07 20:32:00 +0100
commit7b0f65f5f5486f5e32f749826744929813734e24 (patch)
treeda3d4bbf7caf3fe5d712fb3a1df9c42fb549ee2c /cshared/std_cshared.go
parent0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (diff)
downloadgo-git-7b0f65f5f5486f5e32f749826744929813734e24.tar.gz
gofmt simplify (#111)
Diffstat (limited to 'cshared/std_cshared.go')
-rw-r--r--cshared/std_cshared.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cshared/std_cshared.go b/cshared/std_cshared.go
index ca93993..90514b8 100644
--- a/cshared/std_cshared.go
+++ b/cshared/std_cshared.go
@@ -25,7 +25,7 @@ func c_std_map_get_str_str(m uint64, key string) *C.char {
return nil
}
if (val.Kind() == reflect.Slice || val.Kind() == reflect.Array) &&
- val.Type().Elem().Kind() == reflect.Uint8 {
+ val.Type().Elem().Kind() == reflect.Uint8 {
arr := make([]byte, val.Len(), val.Len())
reflect.Copy(reflect.ValueOf(arr), val)
return CBytes(arr)