Skip to content

Commit bfc4e38

Browse files
committed
Merge pull request moby#16320 from 0xfoo/remove-unused-var
Remove unused variable, fix moby#16310
2 parents 259a0fb + 9c9b748 commit bfc4e38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/term/windows/ansi_reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func keyToString(keyEvent *winterm.KEY_EVENT_RECORD, escapeSequence []byte) stri
208208
// formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string.
209209
func formatVirtualKey(key winterm.WORD, controlState winterm.DWORD, escapeSequence []byte) string {
210210
shift, alt, control := getControlKeys(controlState)
211-
modifier := getControlKeysModifier(shift, alt, control, false)
211+
modifier := getControlKeysModifier(shift, alt, control)
212212

213213
if format, ok := arrowKeyMapPrefix[key]; ok {
214214
return fmt.Sprintf(format, escapeSequence, modifier)
@@ -230,7 +230,7 @@ func getControlKeys(controlState winterm.DWORD) (shift, alt, control bool) {
230230
}
231231

232232
// getControlKeysModifier returns the ANSI modifier for the given combination of control keys.
233-
func getControlKeysModifier(shift, alt, control, meta bool) string {
233+
func getControlKeysModifier(shift, alt, control bool) string {
234234
if shift && alt && control {
235235
return ansiterm.KEY_CONTROL_PARAM_8
236236
}

0 commit comments

Comments
 (0)