Skip to content

Commit

Permalink
Inline error check, and put back copyright deleted in error.
Browse files Browse the repository at this point in the history
  • Loading branch information
howbazaar committed May 25, 2017
1 parent 0d9e485 commit 8d4de70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions api/migrationmaster/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,7 @@ func convertResourceRevision(app, name string, rev params.SerializedModelResourc
}
var fp charmresource.Fingerprint
if rev.FingerprintHex != "" {
fp, err = charmresource.ParseFingerprint(rev.FingerprintHex)
if err != nil {
if fp, err = charmresource.ParseFingerprint(rev.FingerprintHex); err != nil {
return empty, errors.Annotate(err, "invalid fingerprint")
}
}
Expand Down
1 change: 1 addition & 0 deletions resource/resourcetesting/resource.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

// This package provides helpers for testing with resources.
Expand Down

0 comments on commit 8d4de70

Please sign in to comment.