Skip to content

Commit

Permalink
cmd/run: Style fixes
Browse files Browse the repository at this point in the history
This makes it easier to spot the beginning of functions with long lists
of parameters and return values.

containers#1415
  • Loading branch information
debarshiray committed Dec 6, 2023
1 parent 25391e7 commit 5d068f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -485,6 +487,7 @@ func constructExecArgs(container, preserveFDs string,
fallbackToBash bool,
ttyNeeded bool,
workDir string) []string {

logLevelString := podman.LogLevel.String()

execArgs := []string{
Expand Down

0 comments on commit 5d068f7

Please sign in to comment.