Skip to content

Commit

Permalink
remove error, unused
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jul 6, 2024
1 parent c795eea commit 2e6add0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interface/src/contexts/authentication/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Authentication: FC<RequiredChildrenProps> = ({ children }) => {
const decodedMe = AuthenticationApi.decodeMeJWT(accessToken);
setMe(decodedMe);
toast.success(LL.LOGGED_IN({ name: decodedMe.username }));
} catch (error) {
} catch {
setMe(undefined);
throw new Error('Failed to parse JWT');
}
Expand Down
2 changes: 1 addition & 1 deletion interface/src/framework/system/RestartMonitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const RestartMonitor: FC = () => {
try {
await send();
document.location.href = '/';
} catch (error) {
} catch {
if (new Date().getTime() < timeoutAt.current) {
setTimeoutId(setTimeout(poll.current, POLL_INTERVAL));
} else {
Expand Down

0 comments on commit 2e6add0

Please sign in to comment.