Skip to content

Commit 21dea16

Browse files
committed
chore: fix linting errors - remove unused variables and escape apostrophe
1 parent 3cb312d commit 21dea16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/features/diff/data/OasDiffCalculator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class OasDiffCalculator implements IOasDiffCalculator {
5252

5353
// Fetch spec content from both refs
5454
let spec1
55-
let isNewFile = false
5655

5756
try {
5857
spec1 = await this.githubClient.getRepositoryContent({
@@ -61,7 +60,7 @@ export class OasDiffCalculator implements IOasDiffCalculator {
6160
path: path,
6261
ref: fromRef
6362
})
64-
} catch (error) {
63+
} catch {
6564
// File doesn't exist in base ref - this is a new file
6665
return {
6766
from: fromRef,

src/features/sidebar/view/internal/diffbar/DiffContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const DiffContent = () => {
6666
{isNewFile && (
6767
<Box sx={{ textAlign: "left", py: 1, px: 1 }}>
6868
<Typography variant="body0" color="text.secondary">
69-
This is a new file that doesn't exist on the base branch.
69+
This is a new file that doesn&apos;t exist on the base branch.
7070
</Typography>
7171
</Box>
7272
)}

0 commit comments

Comments
 (0)