Skip to content

Commit c97af5a

Browse files
Fix linter errors
1 parent 72399d9 commit c97af5a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/_components/RepoStatusButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useState, useEffect } from 'react';
3+
import { useState } from 'react';
44
import { api } from '~/trpc/react';
55

66
export 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
)}

src/server/lib/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/server/services/githubJsonService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/server/services/localScripts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)