Welcome to mirror list, hosted at ThFree Co, Russian Federation.

diff_line.js « utils « diffs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a248cc6318bd2360a1cc203e2372e2dfa70d5bac (plain)
1
2
3
4
5
6
7
8
9
10
export function pickDirection({ line, code } = {}) {
  const { left, right } = line;
  let direction = left || right;

  if (right?.line_code === code) {
    direction = right;
  }

  return direction;
}