mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Fix cluster of silly Go nits.
This commit is contained in:
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package fs
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -28,14 +27,6 @@ type realFile struct {
|
||||
file *os.File
|
||||
}
|
||||
|
||||
// MakeRealFile makes an instance of realFile.
|
||||
func MakeRealFile(f *os.File) (File, error) {
|
||||
if f == nil {
|
||||
return nil, errors.New("file argument may not be nil")
|
||||
}
|
||||
return &realFile{file: f}, nil
|
||||
}
|
||||
|
||||
// Close closes a file.
|
||||
func (f *realFile) Close() error { return f.file.Close() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user