mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Fix linter warnings from unused errorInfo variables
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,7 @@ export function useBlobStorage() {
|
||||
await dbal.blobUpload(key, data, metadata)
|
||||
// toast.success(`Uploaded: ${key}`)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`Upload Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -37,7 +37,7 @@ export function useBlobStorage() {
|
||||
try {
|
||||
return await dbal.blobDownload(key)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`Download Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -54,7 +54,7 @@ export function useBlobStorage() {
|
||||
await dbal.blobDelete(key)
|
||||
// toast.success(`Deleted: ${key}`)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`Delete Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -70,7 +70,7 @@ export function useBlobStorage() {
|
||||
try {
|
||||
return await dbal.blobList(prefix)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`List Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -86,7 +86,7 @@ export function useBlobStorage() {
|
||||
try {
|
||||
return await dbal.blobGetMetadata(key)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`Get Metadata Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export function useKVStore(tenantId: string = 'default', userId: string = 'syste
|
||||
try {
|
||||
await dbal.kvSet(key, value, ttl, tenantId, userId)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`KV Set Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -35,7 +35,7 @@ export function useKVStore(tenantId: string = 'default', userId: string = 'syste
|
||||
try {
|
||||
return await dbal.kvGet<T>(key, tenantId, userId)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`KV Get Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -51,7 +51,7 @@ export function useKVStore(tenantId: string = 'default', userId: string = 'syste
|
||||
try {
|
||||
return await dbal.kvDelete(key, tenantId, userId)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`KV Delete Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -67,7 +67,7 @@ export function useKVStore(tenantId: string = 'default', userId: string = 'syste
|
||||
try {
|
||||
await dbal.kvListAdd(key, items, tenantId, userId)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`KV List Add Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
@@ -83,7 +83,7 @@ export function useKVStore(tenantId: string = 'default', userId: string = 'syste
|
||||
try {
|
||||
return await dbal.kvListGet(key, tenantId, userId, start, end)
|
||||
} catch (err) {
|
||||
const errorInfo = dbal.handleError(err)
|
||||
const _errorInfo = dbal.handleError(err)
|
||||
// toast.error(`KV List Get Error: ${errorInfo.message}`)
|
||||
throw err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user