Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: chrome/browser/resources/net_internals/time_util.js

Issue 2602473003: Run tools/clang-format-js on chrome/browser/resources/net_internals (Closed)
Patch Set: drop dep Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/net_internals/time_util.js
diff --git a/chrome/browser/resources/net_internals/time_util.js b/chrome/browser/resources/net_internals/time_util.js
index c5907ffe50ad380393cca209116bef161410e27c..095e6212b9500c99458c96296ac3e2f884d3908a 100644
--- a/chrome/browser/resources/net_internals/time_util.js
+++ b/chrome/browser/resources/net_internals/time_util.js
@@ -132,14 +132,12 @@ var timeutil = (function() {
* @return {string} A string representation of |date|.
*/
function dateToString(date) {
- var dateStr = date.getFullYear() + '-' +
- zeroPad_(date.getMonth() + 1, 2) + '-' +
- zeroPad_(date.getDate(), 2);
+ var dateStr = date.getFullYear() + '-' + zeroPad_(date.getMonth() + 1, 2) +
+ '-' + zeroPad_(date.getDate(), 2);
var timeStr = zeroPad_(date.getHours(), 2) + ':' +
- zeroPad_(date.getMinutes(), 2) + ':' +
- zeroPad_(date.getSeconds(), 2) + '.' +
- zeroPad_(date.getMilliseconds(), 3);
+ zeroPad_(date.getMinutes(), 2) + ':' + zeroPad_(date.getSeconds(), 2) +
+ '.' + zeroPad_(date.getMilliseconds(), 3);
return dateStr + ' ' + timeStr;
}

Powered by Google App Engine
This is Rietveld 408576698