File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { useState , useEffect } from 'react' ;
3+ import { useState } from 'react' ;
44import { api } from '~/trpc/react' ;
55
66export function RepoStatusButton ( ) {
@@ -23,7 +23,7 @@ export function RepoStatusButton() {
2323 if ( data . success ) {
2424 // Refetch status after successful update
2525 setTimeout ( ( ) => {
26- refetchStatus ( ) ;
26+ void refetchStatus ( ) ;
2727 } , 1000 ) ;
2828
2929 // Clear message after 5 seconds for success
@@ -90,7 +90,7 @@ export function RepoStatusButton() {
9090 </ div >
9191 { repoStatus ?. isRepo && (
9292 < div className = "text-sm text-gray-500" >
93- Branch: { repoStatus . branch || 'unknown' } |
93+ Branch: { repoStatus . branch ?? 'unknown' } |
9494 Last commit: { repoStatus . lastCommit ? repoStatus . lastCommit . substring ( 0 , 8 ) : 'unknown' }
9595 </ div >
9696 ) }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export class GitManager {
102102 // Step 2: npm install
103103 steps . push ( '📦 Installing/updating dependencies...' ) ;
104104 try {
105- const { stdout , stderr } = await execAsync ( 'npm install' , { cwd : this . repoPath } ) ;
105+ const { stderr } = await execAsync ( 'npm install' , { cwd : this . repoPath } ) ;
106106 if ( stderr && ! stderr . includes ( 'npm WARN' ) ) {
107107 console . warn ( 'npm install warnings:' , stderr ) ;
108108 }
@@ -120,7 +120,7 @@ export class GitManager {
120120 // Step 3: Build the application
121121 steps . push ( '🔨 Building application...' ) ;
122122 try {
123- const { stdout , stderr } = await execAsync ( 'npm run build' , { cwd : this . repoPath } ) ;
123+ const { stderr } = await execAsync ( 'npm run build' , { cwd : this . repoPath } ) ;
124124 if ( stderr && ! stderr . includes ( 'npm WARN' ) ) {
125125 console . warn ( 'npm build warnings:' , stderr ) ;
126126 }
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class GitHubJsonService {
141141 try {
142142 const script = await this . downloadJsonFile ( `${ this . jsonFolder } /${ slug } .json` ) ;
143143 return script ;
144- } catch ( error ) {
144+ } catch {
145145 console . log ( `Script ${ slug } not found in repository` ) ;
146146 return null ;
147147 }
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export class LocalScriptsService {
8080 try {
8181 const content = await readFile ( filePath , 'utf-8' ) ;
8282 return JSON . parse ( content ) as Script ;
83- } catch ( fileError ) {
83+ } catch {
8484 // If file doesn't exist, return null instead of throwing
8585 return null ;
8686 }
You can’t perform that action at this time.
0 commit comments