diff options
author | Michael Crosby <crosbymichael@gmail.com> | 2016-05-17 13:20:28 -0700 |
---|---|---|
committer | Michael Crosby <crosbymichael@gmail.com> | 2016-05-23 16:52:58 -0700 |
commit | 8bb4d31b10e4c3abee9ca92535461859bbf25d46 (patch) | |
tree | 8828c0cdea79d3ea65f2a3f82fbae5e9f60b7449 /layer/layer_test.go | |
parent | 36a82c20321936a71b30fcfde8bc6c76d6cc8d1f (diff) | |
download | docker-8bb4d31b10e4c3abee9ca92535461859bbf25d46.tar.gz |
Remove mountedLayer Mount and Unmount
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Diffstat (limited to 'layer/layer_test.go')
-rw-r--r-- | layer/layer_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/layer/layer_test.go b/layer/layer_test.go index 2e4fab5c86..8e6817c96a 100644 --- a/layer/layer_test.go +++ b/layer/layer_test.go @@ -174,10 +174,7 @@ func getCachedLayer(l Layer) *roLayer { } func getMountLayer(l RWLayer) *mountedLayer { - if rl, ok := l.(*referencedRWLayer); ok { - return rl.mountedLayer - } - return l.(*mountedLayer) + return l.(*referencedRWLayer).mountedLayer } func createMetadata(layers ...Layer) []Metadata { |