fix: Replaced call to open with the correct file to open
This commit is contained in:
parent
dae94eb322
commit
91d11dedc0
@ -67,7 +67,7 @@ func (c CourseConfig) String() string {
|
|||||||
func LoadSchedule(fileName string) (Schedule, error) {
|
func LoadSchedule(fileName string) (Schedule, error) {
|
||||||
var v Schedule
|
var v Schedule
|
||||||
|
|
||||||
configFile, err := os.Open("schedule.toml")
|
configFile, err := os.Open(fileName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return v, err
|
return v, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user