Skip to content

Commit 06d5bd3

Browse files
committed
Fixed linter warnings
1 parent dd0e146 commit 06d5bd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: commands/commands_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func TestUploadCommands(t *testing.T) {
235235
require.Contains(t, string(d), "testdata/sketchbook_with_custom_hardware/test.hex")
236236

237237
// non-existent file
238-
exitCode, d = executeWithArgs(t, "upload", "-i", currSketchbookDir.Join("test123.hex").String(), "-b", "test:avr:testboard", "-p", "/dev/ttyACM0")
238+
exitCode, _ = executeWithArgs(t, "upload", "-i", currSketchbookDir.Join("test123.hex").String(), "-b", "test:avr:testboard", "-p", "/dev/ttyACM0")
239239
require.NotZero(t, exitCode, "exit code")
240240

241241
// sketch
@@ -246,11 +246,11 @@ func TestUploadCommands(t *testing.T) {
246246
require.Contains(t, string(d), "testdata/sketchbook_with_custom_hardware/TestSketch/TestSketch.test.avr.testboard.hex")
247247

248248
// sketch without build
249-
exitCode, d = executeWithArgs(t, "upload", currSketchbookDir.Join("TestSketch2").String(), "-b", "test:avr:testboard", "-p", "/dev/ttyACM0")
249+
exitCode, _ = executeWithArgs(t, "upload", currSketchbookDir.Join("TestSketch2").String(), "-b", "test:avr:testboard", "-p", "/dev/ttyACM0")
250250
require.NotZero(t, exitCode, "exit code")
251251

252252
// platform without 'recipe.output.tmp_file' property
253-
exitCode, d = executeWithArgs(t, "upload", "-i", currSketchbookDir.Join("test.hex").String(), "-b", "test2:avr:testboard", "-p", "/dev/ttyACM0")
253+
exitCode, _ = executeWithArgs(t, "upload", "-i", currSketchbookDir.Join("test.hex").String(), "-b", "test2:avr:testboard", "-p", "/dev/ttyACM0")
254254
require.NotZero(t, exitCode, "exit code")
255255
}
256256

0 commit comments

Comments
 (0)