Skip to content

Commit f98b2d5

Browse files
committed
chore: fix lint error
1 parent 99952f5 commit f98b2d5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

db/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type DB interface {
2626
UpsertFetchMeta(*models.FetchMeta) error
2727
}
2828

29+
// Option :
2930
type Option struct {
3031
RedisTimeout time.Duration
3132
}

util/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func CacheDir() string {
8585
return filepath.Join(tmpDir, "go-exploitdb")
8686
}
8787

88+
// IsCommandAvailable :
8889
func IsCommandAvailable(name string) bool {
8990
cmd := exec.Command(name, "--help")
9091
if err := cmd.Run(); err != nil {
@@ -93,6 +94,7 @@ func IsCommandAvailable(name string) bool {
9394
return true
9495
}
9596

97+
// Exists :
9698
func Exists(path string) (bool, error) {
9799
_, err := os.Stat(path)
98100
if err == nil {
@@ -104,6 +106,7 @@ func Exists(path string) (bool, error) {
104106
return true, err
105107
}
106108

109+
// Exec :
107110
func Exec(command string, args []string) (string, error) {
108111
cmd := exec.Command(command, args...)
109112
var stdoutBuf, stderrBuf bytes.Buffer

0 commit comments

Comments
 (0)