Skip to content

Commit b4a5c7e

Browse files
committed
commands: mount - don't generated commands twice
The `if` condition wasn't here originally. When it was added, the assigned value wasn't actually used.
1 parent b13564f commit b4a5c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/commands/mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func Mount() command.Command {
228228
synopsis = "Mount file systems."
229229
)
230230
if subcommands := makeMountSubcommands(); len(subcommands) != 0 {
231-
return command.SubcommandGroup(name, synopsis, makeMountSubcommands())
231+
return command.SubcommandGroup(name, synopsis, subcommands)
232232
}
233233
const usage = "No mount host APIs were built into this executable."
234234
return command.MakeNiladicCommand(

0 commit comments

Comments
 (0)