We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2571216 commit a68c47fCopy full SHA for a68c47f
repeater.go
@@ -30,7 +30,7 @@ var waitTimes []time.Duration = []time.Duration{
30
// invoke PowerShell.exe and run
31
func newRepeater(ctx context.Context) (*repeater, error) {
32
for i, limit := range waitTimes {
33
- log.Printf("invoking [W] in PowerShell.exe%s", trial(i+1))
+ log.Printf("invoking [W] in PowerShell.exe%s", trial(i))
34
35
cmd := exec.Command("PowerShell.exe", "-Command", "-")
36
in, err := cmd.StdinPipe()
@@ -128,9 +128,5 @@ func getWinSshVersion() string {
128
}
129
130
func trial(i int) string {
131
- if i == 0 {
132
- return ""
133
- } else {
134
- return fmt.Sprintf(" (trial %d/%d)", i+1, len(waitTimes))
135
- }
+ return fmt.Sprintf(" (trial %d/%d)", i+1, len(waitTimes))
136
0 commit comments