diff --git a/clab/config.go b/clab/config.go index 106aeb863..9ca3b1810 100644 --- a/clab/config.go +++ b/clab/config.go @@ -287,7 +287,8 @@ func (c *CLab) processStartupConfig(nodeCfg *types.NodeConfig) error { log.Debugf("Node %q startup-config is an embedded config: %q", nodeCfg.ShortName, p) // for embedded config we create a file with the name embedded.partial.cfg // as embedded configs are meant to be partial configs - absDestFile := c.TopoPaths.StartupConfigDownloadFileAbsPath(nodeCfg.ShortName, "embedded.partial.cfg") + absDestFile := c.TopoPaths.StartupConfigDownloadFileAbsPath( + nodeCfg.ShortName, "embedded.partial.cfg") err = utils.CreateFile(absDestFile, p) if err != nil { diff --git a/cmd/version.go b/cmd/version.go index ac5322c5c..c12694871 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -64,7 +64,8 @@ func getLatestVersion(ctx context.Context, vc chan string) { // skipcq: RVV-A000 }, } - req, err := http.NewRequestWithContext(ctx, "HEAD", fmt.Sprintf("%s/releases/latest", repoUrl), nil) + req, err := http.NewRequestWithContext(ctx, "HEAD", + fmt.Sprintf("%s/releases/latest", repoUrl), nil) if err != nil { log.Debugf("error occurred during latest version fetch: %v", err) return diff --git a/nodes/default_node.go b/nodes/default_node.go index 392fa1ac6..3c9ab615d 100644 --- a/nodes/default_node.go +++ b/nodes/default_node.go @@ -339,7 +339,8 @@ func (d *DefaultNode) VerifyLicenseFileExists(_ context.Context) error { // license is not required return nil default: - return fmt.Errorf("unknown license policy value %s for node %s kind %s", d.LicensePolicy, d.Config().ShortName, d.Cfg.Kind) + return fmt.Errorf("unknown license policy value %s for node %s kind %s", + d.LicensePolicy, d.Config().ShortName, d.Cfg.Kind) } } // if license is provided check path exists diff --git a/utils/file.go b/utils/file.go index 3a857b4f7..783b32941 100644 --- a/utils/file.go +++ b/utils/file.go @@ -70,7 +70,7 @@ func CopyFile(src, dst string, mode os.FileMode) (err error) { return CopyFileContents(src, dst, mode) } -// IsHttpUri check if the url is a downloadable uri +// IsHttpUri check if the url is a downloadable uri. func IsHttpUri(s string) bool { return strings.HasPrefix(s, "http://") || strings.HasPrefix(s, "https://") }