chore: add lint ruler, exclude unused variable

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-08-14 22:51:31 +08:00
parent 14fd71005a
commit 2a0ed1ebbf
3 changed files with 7 additions and 1 deletions
-1
View File
@@ -114,7 +114,6 @@ func ListBrowser() []string {
// home dir path for all platforms
var homeDir, _ = os.UserHomeDir()
//nolint:unused
const (
chromeName = "Chrome"
chromeBetaName = "Chrome Beta"
+1
View File
@@ -185,6 +185,7 @@ func (l loginPBE) Decrypt(globalSalt, masterPwd []byte) (key []byte, err error)
func (l loginPBE) iv() []byte {
return l.Data.IV
}
func (l loginPBE) encrypted() []byte {
return l.Encrypted
}