From a17a626ab843d522fad5e3d2e22cec5519661e55 Mon Sep 17 00:00:00 2001 From: Cassondra Foesch Date: Wed, 30 Mar 2022 09:17:11 +0000 Subject: [PATCH] Remove unreachable and duplicated return statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m confident blame will show I am at fault here, not sure how I missed it, and why `go vet` didn’t catch it either. --- internal/encoding/ssh/filexfer/attrs.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/encoding/ssh/filexfer/attrs.go b/internal/encoding/ssh/filexfer/attrs.go index 1d4bb799..eed61bfc 100644 --- a/internal/encoding/ssh/filexfer/attrs.go +++ b/internal/encoding/ssh/filexfer/attrs.go @@ -74,7 +74,6 @@ func (a *Attributes) SetPermissions(perms FileMode) { // GetACModTime returns the ATime and MTime fields and a bool that is true if and only if the values are valid/defined. func (a *Attributes) GetACModTime() (atime, mtime uint32, ok bool) { return a.ATime, a.MTime, a.Flags&AttrACModTime != 0 - return a.ATime, a.MTime, a.Flags&AttrACModTime != 0 } // SetACModTime is a convenience function that sets the ATime and MTime fields,