Skip to content

Commit 3a4b335

Browse files
committed
cleanup
1 parent 0c4cd3e commit 3a4b335

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,9 @@ jobs:
929929
with:
930930
name: dylibs
931931
path: ./build
932-
- run: |
932+
933+
- name: Insert dylibs
934+
run: |
933935
mv ./build/*amd64.dylib ./site/out/bin/coder-amd64.dylib
934936
mv ./build/*arm64.dylib ./site/out/bin/coder-arm64.dylib
935937
mv ./build/*.h ./site/out/bin/coder-dylib.h

vpn/dylib/lib.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ func (f *pipeConn) Write(p []byte) (n int, err error) {
5757
}
5858

5959
func (f *pipeConn) Close() error {
60-
_ = f.r.Close()
61-
_ = f.w.Close()
62-
return nil
60+
rErr := f.r.Close()
61+
wErr := f.w.Close()
62+
if rErr != nil {
63+
return rErr
64+
}
65+
return wErr
6366
}
6467

6568
func newFdConn(cReadFD, cWriteFD int32) (io.ReadWriteCloser, error) {

0 commit comments

Comments
 (0)