Skip to content

Commit

Permalink
[disk][host]: change to use type alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Nov 30, 2022
1 parent 4ac7e99 commit 5473fd1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
2 changes: 2 additions & 0 deletions disk/disk_windows.go
Expand Up @@ -15,6 +15,8 @@ import (
"golang.org/x/sys/windows/registry"
)

type Warnings = common.Warnings

var (
procGetDiskFreeSpaceExW = common.Modkernel32.NewProc("GetDiskFreeSpaceExW")
procGetLogicalDriveStringsW = common.Modkernel32.NewProc("GetLogicalDriveStringsW")
Expand Down
2 changes: 2 additions & 0 deletions host/host_linux.go
Expand Up @@ -19,6 +19,8 @@ import (
"golang.org/x/sys/unix"
)

type Warnings = common.Warnings

type lsbStruct struct {
ID string
Release string
Expand Down
30 changes: 0 additions & 30 deletions host/warnings.go

This file was deleted.

2 changes: 1 addition & 1 deletion disk/warnings.go → internal/common/warnings.go
@@ -1,4 +1,4 @@
package disk
package common

import "fmt"

Expand Down

0 comments on commit 5473fd1

Please sign in to comment.