Skip to content

Commit

Permalink
Fix yarn lint error for desktop#17686
Browse files Browse the repository at this point in the history
  • Loading branch information
Simeon Petrov committed Dec 5, 2023
1 parent a5bbadd commit e5f8852
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/src/lib/git/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,12 @@ export async function convertDiff(
}
}

// we must check for image file because someone can hold text files in LFS
if (imageFileExtensions.has(extension) && diff.contents.includes(LFSVersionString)) {
return getLFSImageDiff(repository, file, diff.hunks[0])
// we must check for image file because someone can hold text files in LFS
if (
imageFileExtensions.has(extension) &&
diff.contents.includes(LFSVersionString)
) {
return getLFSImageDiff(repository, file, diff.hunks[0])
}

return {
Expand Down

0 comments on commit e5f8852

Please sign in to comment.