Skip to content

Commit

Permalink
fix: 불 필요한 err 제거 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 authored Sep 18, 2024
1 parent 2937a53 commit 1463879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/hooks/useClipboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function useClipboard(): UseClipboardReturnType {
const result = await copyClipboardText(value);
setCopiedData(result);
return true;
} catch (err: any) {
} catch {
setCopiedData(null);
return false;
}
Expand All @@ -83,7 +83,7 @@ export function useClipboard(): UseClipboardReturnType {
const result = await copyClipboardImage(src, { toText });
setCopiedData(result);
return true;
} catch (err: any) {
} catch {
setCopiedData(null);
return false;
}
Expand All @@ -96,7 +96,7 @@ export function useClipboard(): UseClipboardReturnType {
const result = await readClipboardText();
setReadData(result);
return true;
} catch (err: any) {
} catch {
setReadData(null);
return false;
}
Expand All @@ -107,7 +107,7 @@ export function useClipboard(): UseClipboardReturnType {
const result = await readClipboardContents();
setReadData(result);
return true;
} catch (err: any) {
} catch {
setReadData(null);
return false;
}
Expand Down

0 comments on commit 1463879

Please sign in to comment.