Remove unused parameter

This commit is contained in:
Sergio Padrino 2022-07-13 17:21:17 +02:00
parent 10f6d70f11
commit d9ed147d07
2 changed files with 3 additions and 10 deletions

View file

@ -17,11 +17,7 @@ import {
ILargeTextDiff,
} from '../../models/diff'
import { Loading } from '../lib/loading'
import {
getFileContents,
getLineFilters,
IFileContents,
} from './syntax-highlighting'
import { getFileContents, IFileContents } from './syntax-highlighting'
import { getTextDiffWithBottomDummyHunk } from './text-diff-expansion'
/**
@ -257,11 +253,9 @@ export class SeamlessDiffSwitcher extends React.Component<
this.loadingState = { file: fileToLoad, diff }
const lineFilters = getLineFilters(diff.hunks)
const fileContents = await getFileContents(
this.props.repository,
fileToLoad,
lineFilters
fileToLoad
)
this.loadingState = null

View file

@ -106,8 +106,7 @@ async function getNewFileContent(
export async function getFileContents(
repo: Repository,
file: ChangedFile,
lineFilters: ILineFilters
file: ChangedFile
): Promise<IFileContents> {
const [oldContents, newContents] = await Promise.all([
getOldFileContent(repo, file).catch(e => {