mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Fix linter errors
This commit is contained in:
10 files changed
+79
-72
No files matched your search
@@ -106,13 +106,12 @@ export function PullRequestForm({ projectId, currentBranch, remoteUrl }: PullReq
|
||||
} else {
|
||||
setError('Unsupported remote URL format');
|
||||
}
|
||||
} catch (err) {
|
||||
} catch {
|
||||
setError('Failed to parse remote URL');
|
||||
}
|
||||
}, []);
|
||||
|
||||
const loadRemoteBranches = useCallback(async () => {
|
||||
setIsLoadingBranches(true);
|
||||
try {
|
||||
const branches = await git.listBranches({
|
||||
dir: projectPath,
|
||||
@@ -129,8 +128,6 @@ export function PullRequestForm({ projectId, currentBranch, remoteUrl }: PullReq
|
||||
}
|
||||
} catch {
|
||||
setRemoteBranches(['main', 'master', 'develop']);
|
||||
} finally {
|
||||
setIsLoadingBranches(false);
|
||||
}
|
||||
}, [git, projectPath]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user