another lint fix
This commit is contained in:
@@ -975,11 +975,6 @@
|
|||||||
"count": 4
|
"count": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"src/lib/hooks/useOpenLink.ts": {
|
|
||||||
"@typescript-eslint/require-await": {
|
|
||||||
"count": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"src/lib/hooks/usePermissions.ts": {
|
"src/lib/hooks/usePermissions.ts": {
|
||||||
"@typescript-eslint/no-misused-promises": {
|
"@typescript-eslint/no-misused-promises": {
|
||||||
"count": 1
|
"count": 1
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export function useOpenLink() {
|
|||||||
const {inAppBrowserConsentControl} = useGlobalDialogsControlContext()
|
const {inAppBrowserConsentControl} = useGlobalDialogsControlContext()
|
||||||
|
|
||||||
const openLink = useCallback(
|
const openLink = useCallback(
|
||||||
async (url: string, override?: boolean, shouldProxy?: boolean) => {
|
(url: string, override?: boolean, shouldProxy?: boolean) => {
|
||||||
if (isBskyRSSUrl(url) && isRelativeUrl(url)) {
|
if (isBskyRSSUrl(url) && isRelativeUrl(url)) {
|
||||||
url = createBskyAppAbsoluteUrl(url)
|
url = createBskyAppAbsoluteUrl(url)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user