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

Unified Diff: ports/libgit2-demo/libgit2.js

Issue 1436283002: Add support for jslint and cleanup core JavaScript files (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « ports/gdb/background.js ('k') | ports/lua/lua.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/libgit2-demo/libgit2.js
diff --git a/ports/libgit2-demo/libgit2.js b/ports/libgit2-demo/libgit2.js
index 9913079f0e5cd07a4e782b97d1d402427d3c2a98..491dc9cf3320cd498c46c4e3b716554ae77b4b10 100644
--- a/ports/libgit2-demo/libgit2.js
+++ b/ports/libgit2-demo/libgit2.js
@@ -7,12 +7,13 @@
'use strict';
function runGitCmd(message, arg1, arg2) {
var dir = document.getElementById('directory').value;
- if (arg2 && arg1)
+ if (arg2 && arg1) {
window.embed.postMessage([message, dir, arg1, arg2]);
- else if (arg1)
+ } else if (arg1) {
window.embed.postMessage([message, dir, arg1]);
- else
+ } else {
window.embed.postMessage([message, dir]);
+ }
}
function clone() {
« no previous file with comments | « ports/gdb/background.js ('k') | ports/lua/lua.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698