Address some go9p issues adressed by SonarCloud

pull/5550/head
Anders F Björklund 2019-10-06 20:07:20 +02:00
parent 63497aa383
commit 65278fcb4d
2 changed files with 1 additions and 3 deletions

View File

@ -23,14 +23,12 @@ func atime(stat *syscall.Stat_t) time.Time {
func isBlock(d os.FileInfo) bool {
stat := d.Sys().(*syscall.Stat_t)
return (stat.Mode & syscall.S_IFMT) == syscall.S_IFBLK
return true
}
// IsChar reports if the file is a character device
func isChar(d os.FileInfo) bool {
stat := d.Sys().(*syscall.Stat_t)
return (stat.Mode & syscall.S_IFMT) == syscall.S_IFCHR
return true
}
func dir2Qid(d os.FileInfo) *Qid {

View File

@ -218,7 +218,7 @@ func Unpack(buf []byte, dotu bool) (fc *Fcall, err error, fcsz int) {
goto szerror
}
return
return //NOSONAR
szerror:
return nil, &Error{"invalid size", EINVAL}, 0