Showing 1 of 18 total issues
Function getHostnameOrLocalhost
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
export const getHostnameOrLocalhost = (host: option.Option<string>): string => { if (option.isNone(host)) { return 'localhost'; } else { if (host.value.includes('localhost:')) {
- Read upRead up
- Create a ticketCreate a ticket