summaryrefslogtreecommitdiff
path: root/spew/bypass.go
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2016-11-23 15:24:26 -0500
committerDave Collins <[email protected]>2017-07-11 11:24:36 -0500
commit9fadf46324c4cfc36cc82310ca92ded38af91249 (patch)
tree7ee45c2a10640ab30ad0f169bad9c2b87d12bc16 /spew/bypass.go
parente250ec7f597aa5cd2c9f38b9cbf3dbc81cc1e3bb (diff)
travis: Use gometalinter
Diffstat (limited to 'spew/bypass.go')
-rw-r--r--spew/bypass.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/spew/bypass.go b/spew/bypass.go
index 8a4a658..7f166c3 100644
--- a/spew/bypass.go
+++ b/spew/bypass.go
@@ -41,9 +41,9 @@ var (
// after commit 82f48826c6c7 which changed the format again to mirror
// the original format. Code in the init function updates these offsets
// as necessary.
- offsetPtr = uintptr(ptrSize)
+ offsetPtr = ptrSize
offsetScalar = uintptr(0)
- offsetFlag = uintptr(ptrSize * 2)
+ offsetFlag = ptrSize * 2
// flagKindWidth and flagKindShift indicate various bits that the
// reflect package uses internally to track kind information.
@@ -58,7 +58,7 @@ var (
// changed their positions. Code in the init function updates these
// flags as necessary.
flagKindWidth = uintptr(5)
- flagKindShift = uintptr(flagKindWidth - 1)
+ flagKindShift = flagKindWidth - 1
flagRO = uintptr(1 << 0)
flagIndir = uintptr(1 << 1)
)