Skip to content

Commit

Permalink
Do not make backend car file Mode and ModTime panic
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Aug 12, 2024
1 parent 52d3a8d commit 0338750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/backend_car_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ func (b *singleUseDirectory) Close() error {
}

func (b *singleUseDirectory) Mode() os.FileMode {
panic("not implemented")
return 0

Check warning on line 140 in gateway/backend_car_files.go

View check run for this annotation

Codecov / codecov/patch

gateway/backend_car_files.go#L139-L140

Added lines #L139 - L140 were not covered by tests
}

func (b *singleUseDirectory) ModTime() time.Time {
panic("not implemented")
return time.Time{}

Check warning on line 144 in gateway/backend_car_files.go

View check run for this annotation

Codecov / codecov/patch

gateway/backend_car_files.go#L143-L144

Added lines #L143 - L144 were not covered by tests
}

func (b *singleUseDirectory) Size() (int64, error) {
Expand Down

0 comments on commit 0338750

Please sign in to comment.