mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
parent
5709b14650
commit
0848143a0b
7 changed files with 16 additions and 19 deletions
|
|
@ -24,12 +24,10 @@ import (
|
|||
func checkIfFileExists(path string, t *testing.T) bool {
|
||||
if _, err := os.Stat(path); err == nil {
|
||||
return true
|
||||
} else if errors.Is(err, os.ErrNotExist) {
|
||||
return false
|
||||
} else {
|
||||
} else if !errors.Is(err, os.ErrNotExist) {
|
||||
t.Fatalf("Failed to check if file exists: %v", err)
|
||||
return false
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func TestShaMarking(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue