Fix typos (#499)

* Update bolt.go

Fix typos

* Update util.go

Fix Typos
This commit is contained in:
~Stack~
2017-09-26 04:16:54 -05:00
committed by Kota Kanbe
parent 5f2183fc8e
commit 03a141c252
2 changed files with 4 additions and 4 deletions

4
cache/bolt.go vendored
View File

@@ -163,7 +163,7 @@ func (b Bolt) GetChangelog(servername, packName string) (changelog string, err e
err = b.db.View(func(tx *bolt.Tx) error {
bkt := tx.Bucket([]byte(servername))
if bkt == nil {
return fmt.Errorf("Faild to get Bucket: %s", servername)
return fmt.Errorf("Failed to get Bucket: %s", servername)
}
v := bkt.Get([]byte(packName))
if v == nil {
@@ -181,7 +181,7 @@ func (b Bolt) PutChangelog(servername, packName, changelog string) error {
return b.db.Update(func(tx *bolt.Tx) error {
bkt := tx.Bucket([]byte(servername))
if bkt == nil {
return fmt.Errorf("Faild to get Bucket: %s", servername)
return fmt.Errorf("Failed to get Bucket: %s", servername)
}
if err := bkt.Put([]byte(packName), []byte(changelog)); err != nil {
return err

View File

@@ -63,7 +63,7 @@ func (e defPacks) toPackStatuses(family string, packs models.Packages) (ps model
for name := range e.actuallyAffectedPackNames {
pack, ok := packs[name]
if !ok {
util.Log.Warnf("Faild to find in Package list: %s", name)
util.Log.Warnf("Failed to find in Package list: %s", name)
return
}
@@ -75,7 +75,7 @@ func (e defPacks) toPackStatuses(family string, packs models.Packages) (ps model
}
}
if ovalPackVer == "" {
util.Log.Warnf("Faild to find in Oval Package list: %s", name)
util.Log.Warnf("Failed to find in Oval Package list: %s", name)
return
}