mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
fs: inline ExtendedStat
This commit is contained in:
@@ -26,7 +26,7 @@ type ExtendedFileInfo struct {
|
||||
}
|
||||
|
||||
// ExtendedStat returns an ExtendedFileInfo constructed from the os.FileInfo.
|
||||
func ExtendedStat(fi os.FileInfo) ExtendedFileInfo {
|
||||
func ExtendedStat(fi os.FileInfo) *ExtendedFileInfo {
|
||||
if fi == nil {
|
||||
panic("os.FileInfo is nil")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user