Skip to content

Instantly share code, notes, and snippets.

@nerdalert
Created May 26, 2015 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerdalert/35e03a8c7dd2446515bf to your computer and use it in GitHub Desktop.
Save nerdalert/35e03a8c7dd2446515bf to your computer and use it in GitHub Desktop.
diff --git a/sandbox/sandbox_unsupported.go b/sandbox/sandbox_unsupported.go
index 55790c1..4a55f46 100644
--- a/sandbox/sandbox_unsupported.go
+++ b/sandbox/sandbox_unsupported.go
@@ -5,23 +5,22 @@ package sandbox
import "errors"
var (
- ErrNotImplemented = errors.New("not implemented")
+ ErrNotImplemented = errors.New("not implemented")
)
// NewSandbox provides a new sandbox instance created in an os specific way
// provided a key which uniquely identifies the sandbox
func NewSandbox(key string, osCreate bool) (Sandbox, error) {
- return nil, ErrNotImplemented
+ return nil, ErrNotImplemented
}
// GenerateKey generates a sandbox key based on the passed
// container id.
func GenerateKey(containerID string) string {
- maxLen := 12
- if len(containerID) < maxLen {
- maxLen = len(containerID)
- }
+ maxLen := 12
+ if len(containerID) < maxLen {
+ maxLen = len(containerID)
+ }
- return containerID[:maxLen]
+ return containerID[:maxLen]
}
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment