cmd/run: Style fixes

This makes it easier to spot the beginning of functions with long lists
of parameters and return values.

https://github.com/containers/toolbox/pull/1415
This commit is contained in:
Debarshi Ray 2023-12-06 12:46:13 +01:00
parent 786723116c
commit 44664c25a3
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,7 @@ func runCommand(container string,
preserveFDs uint,
command []string,
emitEscapeSequence, fallbackToBash, pedantic bool) error {
if !pedantic {
if image == "" {
panic("image not specified")
@ -300,6 +301,7 @@ func runCommandWithFallbacks(container string,
preserveFDs uint,
command []string,
emitEscapeSequence, fallbackToBash bool) error {
logrus.Debug("Checking if 'podman exec' supports disabling the detach keys")
var detachKeysSupported bool
@ -485,6 +487,7 @@ func constructExecArgs(container, preserveFDs string,
fallbackToBash bool,
ttyNeeded bool,
workDir string) []string {
logLevelString := podman.LogLevel.String()
execArgs := []string{