Skip to content

Commit

Permalink
Fixed a nil issue with cmd backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriq-augustine committed May 8, 2024
1 parent e9144df commit 0630c67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/backup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func main() {
var courses map[string]*model.Course;

if (args.Course != "") {
courses = make(map[string]*model.Course);
course := db.MustGetCourse(args.Course);
courses[course.GetID()] = course;
} else {
Expand Down

0 comments on commit 0630c67

Please sign in to comment.