Skip to content

Commit

Permalink
shared/api: Add return parameter names to appease static analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolton <mark.bolton@canonical.com>
  • Loading branch information
boltmark committed Jul 2, 2024
1 parent 5280a54 commit 932518a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/api/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// GetParentAndSnapshotName returns the parent name, snapshot name, and whether it actually was a snapshot name.
func GetParentAndSnapshotName(name string) (string, string, bool) {
func GetParentAndSnapshotName(name string) (parentName string, snapshotName string, isSnapshot bool) {
fields := strings.SplitN(name, "/", 2)
if len(fields) == 1 {
return name, "", false
Expand Down

0 comments on commit 932518a

Please sign in to comment.