removed nucleiVersion var as unused

dev
xm1k3 2023-03-01 18:05:56 +01:00
parent ee6b1bef61
commit 5959daa58f
2 changed files with 0 additions and 7 deletions

View File

@ -90,7 +90,6 @@ func (r *Runner) updateTemplates() error { // TODO this method does more than ju
return nil
}
client.InitNucleiVersion(config.Version)
r.fetchLatestVersionsFromGithub(configDir) // also fetch the latest versions
ctx := context.Background()

View File

@ -13,8 +13,6 @@ const (
IgnoreCall = "ignore"
)
var nucleiVersion string
// LatestVersion is the latest version info for nuclei and templates repos
type LatestVersion struct {
Nuclei string
@ -22,10 +20,6 @@ type LatestVersion struct {
IgnoreHash string
}
func InitNucleiVersion(version string) {
nucleiVersion = version
}
// GetLatestNucleiTemplatesVersion returns the latest version info for nuclei and templates repos
func GetLatestNucleiTemplatesVersion() (*LatestVersion, error) {
resp, err := retryablehttp.DefaultClient().Get(RegisterServer + VersionsCall)