File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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' t exist on the base branch.
7070 </ Typography >
7171 </ Box >
7272 ) }
You can’t perform that action at this time.
0 commit comments