mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
chore: add lint ruler, exclude unused variable
This commit is contained in:
@@ -59,5 +59,11 @@ issues:
|
|||||||
- G404
|
- G404
|
||||||
- G502
|
- G502
|
||||||
- G505
|
- G505
|
||||||
|
exclude-rules:
|
||||||
|
- path: internal/browser/browser\.go
|
||||||
|
linters:
|
||||||
|
- 'deadcode'
|
||||||
|
- 'varcheck'
|
||||||
|
- 'unused'
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ func ListBrowser() []string {
|
|||||||
// home dir path for all platforms
|
// home dir path for all platforms
|
||||||
var homeDir, _ = os.UserHomeDir()
|
var homeDir, _ = os.UserHomeDir()
|
||||||
|
|
||||||
//nolint:unused
|
|
||||||
const (
|
const (
|
||||||
chromeName = "Chrome"
|
chromeName = "Chrome"
|
||||||
chromeBetaName = "Chrome Beta"
|
chromeBetaName = "Chrome Beta"
|
||||||
|
|||||||
@@ -185,6 +185,7 @@ func (l loginPBE) Decrypt(globalSalt, masterPwd []byte) (key []byte, err error)
|
|||||||
func (l loginPBE) iv() []byte {
|
func (l loginPBE) iv() []byte {
|
||||||
return l.Data.IV
|
return l.Data.IV
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l loginPBE) encrypted() []byte {
|
func (l loginPBE) encrypted() []byte {
|
||||||
return l.Encrypted
|
return l.Encrypted
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user