fix: remove unreachable code in deleteDomain function (#28312)
The deleteDomain function had a 'return false' statement after 'return isDomainDeleted && isDnsRecordDeleted' which could never be reached. Co-authored-by: Harshith Kumar <[email protected]>
This commit is contained in:
1 parent
f0a7293f71
commit
d630556dae
1 file changed
-1
@@ -24,7 +24,6 @@ export const deleteDomain = async (slug: string) => {
|
||||
isDnsRecordDeleted = await deleteDnsRecord(domain);
|
||||
}
|
||||
return isDomainDeleted && isDnsRecordDeleted;
|
||||
return false;
|
||||
};
|
||||
|
||||
export const createDomain = async (slug: string) => {
|
||||
|
||||
Reference in new issue
Block a user