From 86311bed042df355c2f7cd5ca487be13701f0c8b Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Mon, 9 Mar 2020 10:47:21 -0700 Subject: [PATCH] swupd: fix comments Signed-off-by: Mark D Horn --- swupd/swupd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swupd/swupd.go b/swupd/swupd.go index 7f4c46c..c88ae34 100644 --- a/swupd/swupd.go +++ b/swupd/swupd.go @@ -127,7 +127,7 @@ type Message struct { StepDescription string `json:"stepDescription"` } -// Process parses the output received from swup and process it according to its type +// Process parses the output received from swupd and process it according to its type func (m Message) Process(printPrefix, line string) { var description string @@ -146,7 +146,7 @@ func (m Message) Process(printPrefix, line string) { return } - // also remove the "," ath the end of the string if exist + // also remove the "," at the end of the string if exist trimmedMsg := strings.TrimSuffix(line, ",") // decode the message assuming it is a JSON stream and ignore those that are not @@ -392,7 +392,7 @@ func (s SoftwareUpdater) DownloadBundles(version string, bundles []string) error // The statedir-cache is set to the statedir that was used to install bundles to the // installer image which reduces the number of bundle downloads. The statedir specifies the - // location to download offline content which is set ot the offline content directory within + // location to download offline content which is set to the offline content directory within // the installer image. s.stateDirCache = s.stateDir s.stateDir = filepath.Join(s.rootDir, conf.OfflineContentDir)