Closed Juneezee closed 1 year ago
We can simplify the following code
dir, err := os.Open(dirname) if err != nil { return err } defer dir.Close() dirs, err := dir.Readdir(-1)
with just os.ReadDir(dirname)
os.ReadDir(dirname)
Hey @Juneezee thanks for submitting ! Can you kindly sign the CLA? Otherwise we cannot merge your PR !
@cdujeu I have signed the CLA, please recheck. Thank you :smiley:
We can simplify the following code
with just
os.ReadDir(dirname)