From 3f992c3d6e5b451277971c78fd7b58c7ef02820f Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Sun, 16 Aug 2015 13:22:27 +0200 Subject: [PATCH] Remove redundant code. --- node_windows.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/node_windows.go b/node_windows.go index 7d5854b80..8a210aa01 100644 --- a/node_windows.go +++ b/node_windows.go @@ -6,11 +6,7 @@ import ( ) func (node *Node) OpenForReading() (*os.File, error) { - file, err := os.OpenFile(node.path, os.O_RDONLY, 0) - if os.IsPermission(err) { - return os.OpenFile(node.path, os.O_RDONLY, 0) - } - return file, err + return os.OpenFile(node.path, os.O_RDONLY, 0) } // mknod() creates a filesystem node (file, device