diff --git a/pkg/testutils/integration.go b/pkg/testutils/integration.go index c8a67e41cb..49eda29626 100644 --- a/pkg/testutils/integration.go +++ b/pkg/testutils/integration.go @@ -162,7 +162,7 @@ func RunNucleiArgsAndGetErrors(debug bool, env []string, extra ...string) ([]str return results, err } -// RunNucleiArgsWithEnvAndGetErrors returns a list of errors in nuclei output (ERR,WRN,FTL) +// RunNucleiArgsWithEnvAndGetResults returns a list of results in nuclei output (ERR,WRN,FTL) func RunNucleiArgsWithEnvAndGetResults(debug bool, env []string, extra ...string) ([]string, error) { cmd := exec.Command("./nuclei") extra = append(extra, ExtraDebugArgs...) diff --git a/pkg/types/types.go b/pkg/types/types.go index 48e9039d37..9d05a0b742 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -592,7 +592,7 @@ func (o *Options) GetValidAbsPath(helperFilePath, templatePath string) (string, return "", errorutil.New("access to helper file %v denied", helperFilePath) } -// isRootDir checks if given is root directory +// isHomeDir checks if given is home directory func isHomeDir(path string) bool { homeDir := folderutil.HomeDirOrDefault("") return strings.HasPrefix(path, homeDir) diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index dfe37ae99e..9a8c669f9b 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -35,7 +35,7 @@ func IsURL(input string) bool { return err == nil && u.Scheme != "" && u.Host != "" } -// ReadFromPathOrURL reads and returns the contents of a file or url. +// ReaderFromPathOrURL reads and returns the contents of a file or url. func ReaderFromPathOrURL(templatePath string, catalog catalog.Catalog) (io.ReadCloser, error) { if IsURL(templatePath) { resp, err := retryablehttp.DefaultClient().Get(templatePath)