Skip to content

Commit

Permalink
Passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pastuxso committed Aug 7, 2024
1 parent c471779 commit cf6eac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ func (p *Project) extractTasksFromFile(
func getCodeBlocksFromFile(path string) (document.CodeBlocks, error) {
data, err := os.ReadFile(path)
if err != nil {
if errors.Is(err, os.ErrPermission) {
return document.CodeBlocks{}, nil
}
return nil, err
}
return getCodeBlocks(data)
Expand Down

0 comments on commit cf6eac8

Please sign in to comment.