@@ -25,7 +25,7 @@ class GitBackendRepositoryAdapter {
2525 if ( ! match ) return undefined ;
2626
2727 const blob = await this . backend . readBlob ( match . sha ) ;
28- // eslint-disable-next-line no-undef -- Buffer is available in Node.js and Electron environments
28+ // eslint-disable-next-line no-undef -- Buffer is available in Node.js and Electron environments
2929 const content = Buffer . from ( blob ) . toString ( "base64" ) ;
3030
3131 return {
@@ -103,10 +103,7 @@ export function createRepositoryAdapter(
103103 ) ;
104104 const branch = plugin . settings . gitBranch || "v4" ;
105105
106- return new GitBackendRepositoryAdapter (
107- backend ,
108- branch ,
109- ) as unknown as RepositoryConnection ;
106+ return new GitBackendRepositoryAdapter ( backend , branch ) ;
110107}
111108
112109export function getValueByPath (
@@ -159,7 +156,11 @@ export function setValueByPath(
159156 }
160157
161158 const existing = current [ part ] ;
162- if ( ! existing || typeof existing !== "object" || Array . isArray ( existing ) ) {
159+ if (
160+ ! existing ||
161+ typeof existing !== "object" ||
162+ Array . isArray ( existing )
163+ ) {
163164 const next : Record < string , unknown > = { } ;
164165 current [ part ] = next ;
165166 current = next ;
@@ -176,8 +177,7 @@ export function parseCliValue(rawValue: string | undefined): unknown {
176177
177178 if ( trimmed === "" ) return "" ;
178179
179- const looksLikeJson =
180- trimmed . startsWith ( "{" ) || trimmed . startsWith ( "[" ) ;
180+ const looksLikeJson = trimmed . startsWith ( "{" ) || trimmed . startsWith ( "[" ) ;
181181 const isPrimitive =
182182 trimmed === "true" ||
183183 trimmed === "false" ||
0 commit comments