You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2018/03/14 05:58:35 UTC

ant-ivy git commit: Revise coding style

Repository: ant-ivy
Updated Branches:
  refs/heads/master d278094ea -> 84234234e


Revise coding style

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/84234234
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/84234234
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/84234234

Branch: refs/heads/master
Commit: 84234234e264521788e5f9222d76eb7998c633b3
Parents: d278094
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Wed Mar 14 06:59:00 2018 +0100
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Wed Mar 14 06:59:00 2018 +0100

----------------------------------------------------------------------
 build-release.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/84234234/build-release.xml
----------------------------------------------------------------------
diff --git a/build-release.xml b/build-release.xml
index addb077..41ccd5b 100644
--- a/build-release.xml
+++ b/build-release.xml
@@ -214,14 +214,14 @@
                 var tocfile = self.getProject().resolveFile(attributes.get("jsontocfile"))
                 r = new java.io.BufferedReader(new java.io.FileReader(tocfile));
                 var val = "";
-                while((s = r.readLine()) != null) {
+                while ((s = r.readLine()) != null) {
                     val += s;
                 }
                 r.close();
                 var toc = eval("("+val+")")
 
                 var writeToc = function(o, children, level) {
-                    for(var c in children) {
+                    for (var c in children) {
                         o.write(level + ' link:#' + children[c].id.replace(/\//g, '_') + '[' + children[c].title + ']\n');
                         if (children[c].children && children[c].children.length && children[c].children.length != 0) {
                             writeToc(o, children[c].children, level+'*');
@@ -230,7 +230,7 @@
                 };
 
                 var writeInclude = function(o, children) {
-                    for(var c in children) {
+                    for (var c in children) {
                         o.write('== [[' + children[c].id.replace(/\//g, '_') + ']]' + children[c].title + '\n\n');
                         o.write('include::../asciidoc/' + children[c].id + '.adoc[]\n\n');
                         if (children[c].children && children[c].children.length && children[c].children.length != 0) {