Address code review comments

This commit is contained in:
Alexander Neumann
2015-07-26 18:00:53 +02:00
parent d1629e1e4e
commit b85927576b
2 changed files with 12 additions and 12 deletions

View File

@@ -162,12 +162,12 @@ func (cmd CmdCat) Execute(args []string) error {
return err
case "blob":
_, tpe, _, length, err := repo.Index().Lookup(id)
_, blobType, _, length, err := repo.Index().Lookup(id)
if err != nil {
return err
}
if tpe != pack.Data {
if blobType != pack.Data {
return errors.New("wrong type for blob")
}