Permalink
Browse files

Removes unnecessary if check in timestamp module.

  • Loading branch information...
1 parent a56a716 commit 745a6eac8ae0335552cd8b6fbff634dab8e64442 @tsmith committed Aug 14, 2010
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/timestamp.js
View
@@ -9,11 +9,9 @@ function padLeft(message, length) {
var delta, i;
message = message.toString();
delta = length - message.length;
- if (delta > 0) {
- for (i = 0; i < delta; i += 1) {
- message = '0' + message;
- }
- }
+ for (i = 0; i < delta; i += 1) {
+ message = '0' + message;
+ }
return message;
}

0 comments on commit 745a6ea

Please sign in to comment.