diff options
| author | Sean McGivern <sean@gitlab.com> | 2018-01-30 15:17:44 +0000 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2018-01-30 15:17:44 +0000 |
| commit | 382421a9bed1ef0fd1e97f6dcec8a104342ae1d8 (patch) | |
| tree | 2be2a81e676fadc4d12e7e2a2e76e7433759da93 /lib/api/api.rb | |
| parent | e74e6fcb5eecb7841a412cb0d3e9627556d83eaf (diff) | |
| download | gitlab-ce-382421a9bed1ef0fd1e97f6dcec8a104342ae1d8.tar.gz | |
Fix truncated_diff_lines for legacy notes without a line42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass
It appears that some legacy diff notes on GitLab.com have invalid line codes,
which means truncated_diff_lines won't work. This is just a band-aid solution,
as neither the diff nor the discussion will display correctly for these notes,
but they won't cause a 500 error.
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions
