mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
refactor: Replace short hand type conversions with function calls
Prefer using explicit casts by calling `Number`, `Boolean`, or `String` over using operators like `+`, `!!` or `"" +`. This is considered best practice as it improves readability.
This commit is contained in:
committed by
GitHub
parent
964b65477c
commit
64e8e85aac
@@ -29,7 +29,7 @@ export const useGetUsenetInfo = (params: UsenetInfoRequestParams) =>
|
||||
refetchInterval: POLLING_INTERVAL,
|
||||
keepPreviousData: true,
|
||||
retry: 2,
|
||||
enabled: !!params.appId,
|
||||
enabled: Boolean(params.appId),
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user