Skip to content

Commit

Permalink
Remove Exercise.Documents
Browse files Browse the repository at this point in the history
Unless we have good reason to keep it, these changes seem to show it's
not needed.
  • Loading branch information
jdsutherland committed Jan 2, 2019
1 parent c296db4 commit 68143a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func runSubmit(cfg config.Config, flags *pflag.FlagSet, args []string) error {
return err
}

exercise.Documents, err = ctx.documents(exercise.Filepath())
documents, err := ctx.documents(exercise.Filepath())
if err != nil {
return err
}

if err := ctx.submitRequest(metadata.ID, exercise.Documents); err != nil {
if err := ctx.submitRequest(metadata.ID, documents); err != nil {
return err
}

Expand Down
1 change: 0 additions & 1 deletion workspace/exercise.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Exercise struct {
Root string
Track string
Slug string
Documents []Document
}

// NewExerciseFromDir constructs an exercise given the exercise directory.
Expand Down

0 comments on commit 68143a6

Please sign in to comment.