mirror of
https://github.com/ssh-vault/ssh-vault.git
synced 2025-07-31 05:24:22 +03:00
lint
This commit is contained in:
1
cache.go
1
cache.go
@ -47,6 +47,7 @@ func (c *cache) Get(u string, k int) (string, error) {
|
|||||||
return uKey, nil
|
return uKey, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsFile check if string is a file
|
||||||
func (c *cache) IsFile(path string) bool {
|
func (c *cache) IsFile(path string) bool {
|
||||||
f, err := os.Stat(path)
|
f, err := os.Stat(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user