diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-09 09:47:47 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2015-01-01 21:12:00 +0100 |
commit | 33c9f05c6bb90a995ddc685b4a22479f17c575e5 (patch) | |
tree | 8dd374b515eeb5e9194ab3c52e46b569cfb5f2e8 /app/helpers/graph_helper.rb | |
parent | ac1584249c262e447a6360734597fa17fe077718 (diff) | |
download | gitlab-ce-33c9f05c6bb90a995ddc685b4a22479f17c575e5.tar.gz |
Append in place for strings and arrays
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r-- | app/helpers/graph_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb index 7cb1b6f8d1a..e1dda20de85 100644 --- a/app/helpers/graph_helper.rb +++ b/app/helpers/graph_helper.rb @@ -1,10 +1,10 @@ module GraphHelper def get_refs(repo, commit) refs = "" - refs += commit.ref_names(repo).join(" ") + refs << commit.ref_names(repo).join(' ') # append note count - refs += "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0 + refs << "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0 refs end |