import { TipState, Tip } from '../models/tip'

export function   getTipSha(tip: Tip) {
  if (tip.kind === TipState.Valid) {
    return tip.branch.tip.sha
  }

  if (tip.kind === TipState.Detached) {
    return tip.currentSha
  }
  return '(unknown)'
}

import { TipState, Tip } from '../models/tip'

export function getTipSha(tip: Tip) {
  if (tip.kind === TipState.Valid) {
    return tip.branch.tip.sha
  }

  if (tip.kind === TipState.Detached) {
    return tip.currentSha
  }
  return '(unknown)'
}

Revert "Okay, let's try a linting error that doesn't fail the build"
Revert "Okay, let's try a linting error that doesn't fail the build"

This reverts commit 4d19e2e7e1e5c4ac617ccbec8ed1e5cc576855ae.
