refactor: empty file finder lecture 3

This commit is contained in:
Inanc Gumus
2019-03-06 18:24:47 +03:00
parent a9e327c36b
commit c05eed3c95
2 changed files with 11 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ func main() {
if file.Size() == 0 {
name := file.Name()
fmt.Println(cap(names))
names = append(names, name...)
names = append(names, '\n')
}