From f25f02a29a64330c2e86324b5543e4134b5f649b Mon Sep 17 00:00:00 2001 From: Ompragash Viswanathan Date: Mon, 3 Mar 2025 20:39:52 +0530 Subject: [PATCH] Update impl.go --- plugin/impl.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/impl.go b/plugin/impl.go index 42557e1..7c2f390 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -60,7 +60,7 @@ var defaultPortMap = map[string]string{ func isNilPortOrStandardSchemePort(u *url.URL) bool { if u.Scheme != "http" && u.Scheme != "https" { - //invalid schemes aren't worth checking and we want http or https + // invalid schemes aren't worth checking and we want http or https return false } // since we verify above that the scheme above is valid and this map @@ -123,7 +123,11 @@ func (p *Plugin) Validate() error { registriesMatch, err := p.CompareRegistries(npm.Config) if err != nil { - return fmt.Errorf("issue comparing the registries specified in drone yaml (%s) and package.json: (%s)", p.settings.Registry, npm.Config.Registry) // if there's an error using this default to standard validation by string compare + return fmt.Errorf( + "issue comparing the registries specified in drone yaml (%s) and package.json: (%s)", + p.settings.Registry, + npm.Config.Registry + ) // if there's an error using this default to standard validation by string compare } if !registriesMatch && !p.settings.SkipRegistryValidation { return fmt.Errorf("registry values do not match .drone.yml: %s package.json: %s", p.settings.Registry, npm.Config.Registry)