Skip to content

Commit

Permalink
Allow SHA1Dir to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Dec 21, 2024
1 parent 49264dd commit 64460cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dmfr/feed_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type FeedVersion struct {
FeedID int
SHA1 string
SHA1Dir string
SHA1Dir tt.String
File string
URL string
EarliestCalendarDate tt.Date
Expand Down
2 changes: 1 addition & 1 deletion stats/fv.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewFeedVersionFromReader(reader adapters.Reader) (dmfr.FeedVersion, error)
}
if s, ok := reader.(canDirSHA1); ok {
if h, err := s.DirSHA1(); err == nil {
fv.SHA1Dir = h
fv.SHA1Dir.Set(h)
}
}
if s, ok := reader.(canPath); ok {
Expand Down

0 comments on commit 64460cc

Please sign in to comment.