1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

🚨 Happy linter

This commit is contained in:
makeworld 2021-02-27 00:17:11 -05:00
parent af5bd00bcb
commit 215f1a25ee
3 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func Init() error {
"couldn't delete old bookmarks file (%s), you must delete it yourself to prevent duplicate bookmarks: %w",
config.OldBkmkPath,
err,
)
) //nolint:goerr113
}
config.BkmkStore = nil
}

View File

@ -23,6 +23,8 @@ type xbelBookmark struct {
// xbelFolder is unused as folders aren't supported by the UI yet.
// Follow #56 for details.
// https://github.com/makeworld-the-better-one/amfora/issues/56
//
//nolint:unused
type xbelFolder struct {
XMLName xml.Name `xml:"folder"`
Version string `xml:"version,attr"`

View File

@ -159,6 +159,8 @@ func addBookmark() {
name, exists := bookmarks.Get(p.URL)
// Open a bookmark modal with the current name of the bookmark, if it exists
newName, action := openBkmkModal(name, exists)
//nolint:exhaustive
switch action {
case add:
bookmarks.Add(p.URL, newName)