]> Cypherpunks repositories - gostls13.git/commitdiff
mime: delete unnecessary constant conversions.
authorRob Pike <r@golang.org>
Thu, 19 Aug 2010 21:42:02 +0000 (07:42 +1000)
committerRob Pike <r@golang.org>
Thu, 19 Aug 2010 21:42:02 +0000 (07:42 +1000)
R=rsc
CC=golang-dev
https://golang.org/cl/1984043

src/pkg/mime/grammar.go

index 98fbe33c6df55658f4d86448652f3147c4cf69d2..e60cbb8df74b84ad36e448d4ee8a0d36193755f3 100644 (file)
@@ -29,7 +29,7 @@ func IsQText(rune int) bool {
        //                "\" & CR, and including
        //                linear-white-space>
        switch rune {
-       case int('"'), int('\\'), int('\r'):
+       case '"', '\\', '\r':
                return false
        }
        return rune < 0x80