Skip to content

Commit

Permalink
fix(scanner): fix linting Ctim.Sec/Ctim.Nsec on 32 bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Jan 10, 2022
1 parent 14a2668 commit b280e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/scanner/scanner.go
Expand Up @@ -517,5 +517,6 @@ func statCreateTime(info fs.FileInfo) time.Time {
if stat.Ctim.Sec == 0 {
return time.Time{}
}
return time.Unix(stat.Ctim.Sec, stat.Ctim.Nsec)
//nolint:unconvert // Ctim.Sec/Nsec is int32 on arm/386, etc
return time.Unix(int64(stat.Ctim.Sec), int64(stat.Ctim.Nsec))
}

0 comments on commit b280e8d

Please sign in to comment.