mirror of
https://github.com/makew0rld/amfora.git
synced 2024-12-04 14:46:29 -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",
|
||||
config.OldBkmkPath,
|
||||
err,
|
||||
)
|
||||
) //nolint:goerr113
|
||||
}
|
||||
config.BkmkStore = nil
|
||||
}
|
||||
|
@ -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"`
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user