[tor-commits] [goptlib/master] Put byte ranges in order.
dcf at torproject.org
dcf at torproject.org
Mon Jun 26 23:50:42 UTC 2017
commit a3ad5df6c9e7dc8117f55958b4ce99bf1e0fe291
Author: David Fifield <david at bamsoftware.com>
Date: Mon Jun 26 16:50:26 2017 -0700
Put byte ranges in order.
---
pt.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pt.go b/pt.go
index 39e6aca..cc0ed8c 100644
--- a/pt.go
+++ b/pt.go
@@ -218,11 +218,11 @@ func getenvRequired(key string) (string, error) {
func keywordIsSafe(keyword string) bool {
for _, b := range []byte(keyword) {
switch {
- case b >= '0' && b <= '9':
+ case '0' <= b && b <= '9':
continue
- case b >= 'A' && b <= 'Z':
+ case 'A' <= b && b <= 'Z':
continue
- case b >= 'a' && b <= 'z':
+ case 'a' <= b && b <= 'z':
continue
case b == '-' || b == '_':
continue
More information about the tor-commits
mailing list