R=rsc
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=33496
CL=33519
func URLUnescape(s string) (string, os.Error) {
// Count %, check that they're well-formed.
n := 0;
- anyPlusses := false;
+ hasPlus := false;
for i := 0; i < len(s); {
switch s[i] {
case '%':
}
i += 3;
case '+':
- anyPlusses = true;
+ hasPlus = true;
i++;
default:
i++
}
}
- if n == 0 && !anyPlusses {
+ if n == 0 && !hasPlus {
return s, nil
}