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 <mharshithkumar6@gmail.com>
This commit is contained in:
co-authored by
Harshith Kumar
parent
f0a7293f71
commit
d630556dae
@@ -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