Skip to content

Commit 6baa9a8

Browse files
Merge pull request #218 from Elbehery/20250221-fix-linter-indent
linter: remove else block
2 parents edd7dd0 + 71c0e04 commit 6baa9a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/extract.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ func extractValidateAndRun() error {
157157
return printLeafItemSummary(kv, out)
158158
} else if opts.printKey {
159159
return printLeafItemKey(kv, out)
160-
} else {
161-
return printLeafItemValue(kv, outMediaType, out)
162160
}
161+
return printLeafItemValue(kv, outMediaType, out)
163162
case hasKey && hasKeyPrefix:
164163
return fmt.Errorf("--keys-by-prefix and --key may not be used together")
165164
case hasKey && opts.listVersions:

0 commit comments

Comments
 (0)