Skip to content

Commit 665d19a

Browse files
committed
internal/mod/zip: silence "err value not used" warnings
The CheckFiles and CheckDir APIs return cf.Err() as err again, and the tests already check the former. Signed-off-by: Daniel Martí <[email protected]> Change-Id: If053d4d74364bbdfbd6a756b47fe4ccdb1acefdb Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170020 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent fd8d5f9 commit 665d19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/mod/zip/zip_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func TestCheckFiles(t *testing.T) {
249249
}
250250

251251
// Check the files.
252-
cf, err := modzip.CheckFiles[fakeFile](files, fakeFileIO{})
252+
cf, _ := modzip.CheckFiles[fakeFile](files, fakeFileIO{})
253253
got := formatCheckedFiles(cf)
254254
if diff := cmp.Diff(test.want, got); diff != "" {
255255
t.Errorf("unexpected result; (-want +got):\n%s", diff)
@@ -299,7 +299,7 @@ func TestCheckDir(t *testing.T) {
299299
}
300300

301301
// Check the directory.
302-
cf, err := modzip.CheckDir(tmpDir)
302+
cf, _ := modzip.CheckDir(tmpDir)
303303
rep := strings.NewReplacer(tmpDir, "$work", `'\''`, `'\''`, string(os.PathSeparator), "/")
304304
got := rep.Replace(formatCheckedFiles(cf))
305305
if diff := cmp.Diff(test.want, got); diff != "" {

0 commit comments

Comments
 (0)