Skip to content

Commit

Permalink
Remove unreachable and duplicated return statement
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
puellanivis committed Mar 30, 2022
1 parent dcfc1d5 commit a17a626
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/encoding/ssh/filexfer/attrs.go
Expand Up @@ -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,
Expand Down

0 comments on commit a17a626

Please sign in to comment.