Skip to content

Commit

Permalink
swupd: fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
  • Loading branch information
mdhorn committed Mar 10, 2020
1 parent ad8b17c commit 86311be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swupd/swupd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 86311be

Please sign in to comment.