summaryrefslogtreecommitdiff
diff options
authorAlberto Mardegan <mardy@users.sourceforge.net>2022-01-25 11:14:01 +0300
committerAlberto Mardegan <mardy@users.sourceforge.net>2022-03-03 09:24:03 +0300
commite0a91c439a31abfb95a2f3e1bdcbf06e3769d311 (patch)
tree69cc29e8111b4215038f3814cb4f0c8958e1de10
parentce477ef58f6f28426b56be7d2532f618f378cecd (diff)
snap/info: formatting change
-rw-r--r--snap/info.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/snap/info.go b/snap/info.go
index b8c052d6df..4cf5a2492e 100644
--- a/snap/info.go
+++ b/snap/info.go
@@ -754,9 +754,7 @@ func lookupAttr(attrs map[string]interface{}, path string) (interface{}, bool) {
func getAttribute(snapName string, ifaceName string, attrs map[string]interface{}, key string, val interface{}) error {
v, ok := lookupAttr(attrs, key)
if !ok {
- return AttributeNotFoundError{
- fmt.Errorf("snap %q does not have attribute %q for interface %q", snapName, key, ifaceName),
- }
+ return AttributeNotFoundError{fmt.Errorf("snap %q does not have attribute %q for interface %q", snapName, key, ifaceName)}
}
return metautil.SetValueFromAttribute(snapName, ifaceName, key, v, val)