mirror of
https://github.com/makew0rld/amfora.git
synced 2024-11-03 02:37:23 -05:00
🚨 Happy linter
This commit is contained in:
parent
af5bd00bcb
commit
215f1a25ee
@ -65,7 +65,7 @@ func Init() error {
|
|||||||
"couldn't delete old bookmarks file (%s), you must delete it yourself to prevent duplicate bookmarks: %w",
|
"couldn't delete old bookmarks file (%s), you must delete it yourself to prevent duplicate bookmarks: %w",
|
||||||
config.OldBkmkPath,
|
config.OldBkmkPath,
|
||||||
err,
|
err,
|
||||||
)
|
) //nolint:goerr113
|
||||||
}
|
}
|
||||||
config.BkmkStore = nil
|
config.BkmkStore = nil
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@ type xbelBookmark struct {
|
|||||||
// xbelFolder is unused as folders aren't supported by the UI yet.
|
// xbelFolder is unused as folders aren't supported by the UI yet.
|
||||||
// Follow #56 for details.
|
// Follow #56 for details.
|
||||||
// https://github.com/makeworld-the-better-one/amfora/issues/56
|
// https://github.com/makeworld-the-better-one/amfora/issues/56
|
||||||
|
//
|
||||||
|
//nolint:unused
|
||||||
type xbelFolder struct {
|
type xbelFolder struct {
|
||||||
XMLName xml.Name `xml:"folder"`
|
XMLName xml.Name `xml:"folder"`
|
||||||
Version string `xml:"version,attr"`
|
Version string `xml:"version,attr"`
|
||||||
|
@ -159,6 +159,8 @@ func addBookmark() {
|
|||||||
name, exists := bookmarks.Get(p.URL)
|
name, exists := bookmarks.Get(p.URL)
|
||||||
// Open a bookmark modal with the current name of the bookmark, if it exists
|
// Open a bookmark modal with the current name of the bookmark, if it exists
|
||||||
newName, action := openBkmkModal(name, exists)
|
newName, action := openBkmkModal(name, exists)
|
||||||
|
|
||||||
|
//nolint:exhaustive
|
||||||
switch action {
|
switch action {
|
||||||
case add:
|
case add:
|
||||||
bookmarks.Add(p.URL, newName)
|
bookmarks.Add(p.URL, newName)
|
||||||
|
Loading…
Reference in New Issue
Block a user