Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Dec 20, 2024
1 parent 3257e9e commit 9277f03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/metadata/epub.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type EpubReader struct {
GetPackageFromFile func(path string) (*epub.PackageDocument, error)
}

func NewEpub() EpubReader {
func NewEpubReader() EpubReader {
return EpubReader{
GetMetadataFromFile: epub.GetMetadataFromFile,
GetPackageFromFile: epub.GetPackageFromFile,
Expand Down
2 changes: 1 addition & 1 deletion internal/webserver/embedded/css/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ a.collapse-control.collapsed:after {

.actions .dropdown-menu {
white-space: nowrap;
}
}
2 changes: 1 addition & 1 deletion internal/webserver/embedded/images/eye-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion internal/webserver/embedded/js/send-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ document.body.addEventListener('htmx:afterRequest', function (evt) {
parent.querySelector(".quick-email-error").classList.add("d-none");
parent.querySelector(".quick-email-success").classList.remove("d-none");
}
});
});
2 changes: 1 addition & 1 deletion internal/webserver/webserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func bootstrapApp(db *gorm.DB, sender webserver.Sender, appFs afero.Fs, webserve
)

metadataReaders := map[string]metadata.Reader{
".epub": metadata.NewEpub(),
".epub": metadata.NewEpubReader(),
".pdf": metadata.PdfReader{},
}

Expand Down

0 comments on commit 9277f03

Please sign in to comment.