summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/http/HTTPClient.java
diff options
context:
space:
mode:
authorjdennis <jdennis@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-11-19 20:37:51 +0000
committerjdennis <jdennis@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-11-19 20:37:51 +0000
commit6f05385c5d658a107cc5ff787436bffd9727f865 (patch)
tree21ca58366afbf1efd1bb5b35e75007eb4a2d9f11 /pki/base/silent/src/http/HTTPClient.java
parent8a52e6243118380c747a6bea76431a21cb4ece6a (diff)
Remove pointless no-op string interpolations
Constructs such as "$variable" when $variable is already a string are no-op waste of processor cycles and confusing to read. Just use the variable. Explanation: Perl performs variable substitutions on all double quoted strings, this is called string interpolation. To do this Perl scans the string looking for anything that looks like a variable and substitutes it's current value. But when the string consists of nothing other than a variable (e.g. "$variable") the result is the same as the variable, effectively it's just a no-op. I'm not sure if the interpreter is smart enough to recognize this as a no-op and skip the interpolation, irregardless there is no point in coding it this way. It eludes me as to what the programmer thought they were accomplishing when they wrote "$variable". git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1542 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/silent/src/http/HTTPClient.java')
0 files changed, 0 insertions, 0 deletions