mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Simplified code.
This commit is contained in:
parent
fed66c4e27
commit
7cf1580d5f
1 changed files with 1 additions and 2 deletions
|
|
@ -20,9 +20,8 @@ func updateIndex(dir, fname string) error {
|
|||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return []string{fname}, nil
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
var lines []string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue