From 807441a526f9094d3c099d422542252a4a0ec964 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Fri, 15 Nov 2013 08:04:58 -0500 Subject: Brush some lint off using github.com/golang/lint. This includes one breaking change: WriteLinkID instead of WriteLinkId. --- util.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'util.go') diff --git a/util.go b/util.go index 08b9503..b07a37d 100644 --- a/util.go +++ b/util.go @@ -28,9 +28,8 @@ import ( func round(f float64) int { if f < 0 { return -int(math.Floor(-f + 0.5)) - } else { - return int(math.Floor(f + 0.5)) } + return int(math.Floor(f + 0.5)) } func sprintf(fmtStr string, args ...interface{}) string { @@ -131,18 +130,16 @@ func utf8toutf16(s string) string { func intIf(cnd bool, a, b int) int { if cnd { return a - } else { - return b } + return b } // Return aStr if cnd is true, otherwise bStr func strIf(cnd bool, aStr, bStr string) string { if cnd { return aStr - } else { - return bStr } + return bStr } // Dump the internals of the specified values -- cgit v1.2.1-24-ge1ad