remove ErrExist check on -debugdir's RemoveAll
This code initially used os.Stat, where it made sense to use os.IsNotExist to catch whether the directory didn't exist. However, we later transitioned to os.RemoveAll, which will never return neither ErrExist nor ErrNotExist: If the path does not exist, RemoveAll returns nil (no error). Simplify the code.pull/496/head
parent
bd3f950799
commit
cf0351bdf5
Loading…
Reference in New Issue