Skip to content

Commit

Permalink
Refactor simplify Solution.Write path knowledge
Browse files Browse the repository at this point in the history
Knowledge of metadata filepath doesn't require asking Exercise
  • Loading branch information
jdsutherland committed Aug 31, 2018
1 parent e646bc8 commit 839a2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspace/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (s *Solution) Write(dir string) error {
if err != nil {
return err
}
metadataAbsoluteFilepath := NewExerciseFromDir(dir).MetadataFilepath()
metadataAbsoluteFilepath := filepath.Join(dir, metadataFilepath)
if err = os.MkdirAll(filepath.Dir(metadataAbsoluteFilepath), os.FileMode(0755)); err != nil {
return err
}
Expand Down

0 comments on commit 839a2d4

Please sign in to comment.