Skip to content

Commit

Permalink
Fixes nil select error
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon23 authored Aug 29, 2019
1 parent 515e766 commit cea0dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
end
end

def watched_changes(watching, commits = [])
def watched_changes(watching, commits = nil)
commits ||= []
commits.select do |commit|
commit['modified'].any?{ |added| added.start_with?(watching) }
end
Expand Down

0 comments on commit cea0dbf

Please sign in to comment.