repochecker/epita: Fix file format checking
This commit is contained in:
parent
b334122707
commit
76ee40b7f1
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
func EPITACheckFile(file *fic.EFile, exceptions *sync.CheckExceptions) (errs []error) {
|
func EPITACheckFile(file *fic.EFile, exceptions *sync.CheckExceptions) (errs []error) {
|
||||||
// Enforce file format
|
// Enforce file format
|
||||||
if path.Ext(file.Name) == "rar" || path.Ext(file.Name) == "7z" {
|
if path.Ext(file.Name) == ".rar" || path.Ext(file.Name) == ".7z" {
|
||||||
errs = append(errs, fmt.Errorf("this file use a forbidden archive type."))
|
errs = append(errs, fmt.Errorf("this file use a forbidden archive type."))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user