]> git.openstreetmap.org Git - rails.git/commitdiff
Fix rubocop warning
authorTom Hughes <tom@compton.nu>
Sun, 2 Aug 2020 12:00:21 +0000 (13:00 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 2 Aug 2020 12:00:21 +0000 (13:00 +0100)
app/views/browse/note.html.erb

index c72730a762b21fca08f1cae0904b378f4176d76f..eefd62b0ae7cb43615771182678259f3a73e74dd 100644 (file)
@@ -35,7 +35,7 @@
   <% if @note_comments.length > 1 %>
     <div class='note-comments'>
       <ul class="list-unstyled">
-        <% @note_comments[1..-1].each do |comment| %>
+        <% @note_comments[1..].each do |comment| %>
           <li id="c<%= comment.id %>">
             <small class='text-muted'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
             <%= comment.body.to_html %>