Fixes thanks to go vet
This commit is contained in:
parent
4b538cdea8
commit
0ec90b14c6
4 changed files with 20 additions and 7 deletions
|
@ -36,7 +36,20 @@ func getSettings(_ httprouter.Params, body []byte) (interface{}, error) {
|
|||
if settings.ExistsSettings(path.Join(settings.SettingsDir, settings.SettingsFile)) {
|
||||
return settings.ReadSettings(path.Join(settings.SettingsDir, settings.SettingsFile))
|
||||
} else {
|
||||
return settings.FICSettings{"Challenge FIC", "Laboratoire SRS, ÉPITA", time.Unix(0,0), time.Unix(0,0), time.Unix(0,0), fic.FirstBlood, fic.SubmissionCostBase, false, false, false, true, true}, nil
|
||||
return settings.FICSettings{
|
||||
Title: "Challenge FIC",
|
||||
Authors: "Laboratoire SRS, ÉPITA",
|
||||
Start: time.Unix(0,0),
|
||||
End: time.Unix(0,0),
|
||||
Generation: time.Unix(0,0),
|
||||
FirstBlood: fic.FirstBlood,
|
||||
SubmissionCostBase: fic.SubmissionCostBase,
|
||||
AllowRegistration: false,
|
||||
DenyNameChange: false,
|
||||
EnableResolutionRoute: false,
|
||||
PartialValidation: true,
|
||||
EnableExerciceDepend: true,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue