Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit e8abef2

Browse files
committed
Update [vV]ersion comment strings; remove extraneous error check.
1 parent d853066 commit e8abef2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cmd/coder/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (cmd *syncCmd) RegisterFlags(fl *pflag.FlagSet) {
3333
fl.BoolVarP(&cmd.init, "init", "i", false, "do initial transfer and exit")
3434
}
3535

36-
// Returns local rsync protocol version as a string.
36+
// version returns local rsync protocol version as a string.
3737
func (_ *syncCmd) version() string {
3838
cmd := exec.Command("rsync", "--version")
3939
out, err := cmd.CombinedOutput()

internal/sync/sync.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ const (
263263
maxAcceptableDispatch = time.Millisecond * 50
264264
)
265265

266-
// Returns remote protocol version as a string.
266+
// Version returns remote protocol version as a string.
267267
// Or, an error if one exists.
268268
func (s Sync) Version() (string, error) {
269269
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
@@ -287,9 +287,6 @@ func (s Sync) Version() (string, error) {
287287
io.Copy(buf, process.Stdout())
288288

289289
err = process.Wait()
290-
if _, ok := err.(wsep.ExitError); ok {
291-
return "", err
292-
}
293290
if err != nil {
294291
return "", err
295292
}

0 commit comments

Comments
 (0)