lib/gitlab/shell_history.rb in gitlab-4.16.1 vs lib/gitlab/shell_history.rb in gitlab-4.17.0

- old
+ new

@@ -40,13 +40,13 @@ def history_file_path File.expand_path(@file_path) end - def read_from_file + def read_from_file(&block) path = history_file_path - File.foreach(path) { |line| yield(line) } if File.exist?(path) + File.foreach(path, &block) if File.exist?(path) rescue StandardError => e warn "History file not loaded: #{e.message}" end def max_lines