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 4debd29 commit 70d9b64Copy full SHA for 70d9b64
cmd/micro/micro.go
@@ -159,8 +159,6 @@ func LoadInput(args []string) []*buffer.Buffer {
159
// should be opened
160
161
var filename string
162
- var input []byte
163
- var err error
164
buffers := make([]*buffer.Buffer, 0, len(args))
165
166
files := make([]string, 0, len(args))
@@ -235,7 +233,7 @@ func LoadInput(args []string) []*buffer.Buffer {
235
233
// Option 2
236
234
// The input is not a terminal, so something is being piped in
237
// and we should read from stdin
238
- input, err = io.ReadAll(os.Stdin)
+ input, err := io.ReadAll(os.Stdin)
239
if err != nil {
240
screen.TermMessage("Error reading from stdin: ", err)
241
input = []byte{}
0 commit comments