mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:05:27 +00:00
Update pkg/external/customtemplates/github.go
Co-authored-by: Dwi Siswanto <25837540+dwisiswant0@users.noreply.github.com>
This commit is contained in:
parent
5be258f948
commit
5b7debf349
2
pkg/external/customtemplates/github.go
vendored
2
pkg/external/customtemplates/github.go
vendored
@ -53,7 +53,7 @@ func (customTemplate *customTemplateGitHubRepo) Update(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
err := customTemplate.pullChanges(clonePath, customTemplate.githubToken)
|
err := customTemplate.pullChanges(clonePath, customTemplate.githubToken)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if strings.Contains(err.Error(), "already up-to-date") {
|
if errors.Is(err, git.NoErrAlreadyUpToDate) {
|
||||||
gologger.Info().Msgf("%s", err)
|
gologger.Info().Msgf("%s", err)
|
||||||
} else {
|
} else {
|
||||||
gologger.Error().Msgf("%s", err)
|
gologger.Error().Msgf("%s", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user