Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move IsErrNoEnt to error.go

  • Loading branch information...
commit b2bc764e125207f2ab1fdd3863f974ce53f10b24 1 parent e6c7e5b
@cloudhead cloudhead authored
Showing with 7 additions and 7 deletions.
  1. +7 −0 error.go
  2. +0 −7 snapshot.go
View
7 error.go
@@ -28,3 +28,10 @@ func NewError(err error, msg string) *Error {
func (e *Error) Error() string {
return e.Message
}
+
+func IsErrNoEnt(e error) (r bool) {
+ if err, ok := e.(*Error); ok {
+ r = err.Err == ErrNoEnt
+ }
+ return
+}
View
7 snapshot.go
@@ -150,13 +150,6 @@ func (s Snapshot) SetScale(app string, revision string, processName string, fact
return
}
-func IsErrNoEnt(e error) (r bool) {
- if err, ok := e.(*Error); ok {
- r = err.Err == ErrNoEnt
- }
- return
-}
-
// fastForward either calls *createSnapshot* on *obj* or returns *obj* if it
// can't advance the object in time. Note that fastForward can never fail.
func (s *Snapshot) fastForward(obj Snapshotable, rev int64) Snapshotable {
Please sign in to comment.
Something went wrong with that request. Please try again.