aboutsummaryrefslogtreecommitdiff
path: root/chunk.go
diff options
context:
space:
mode:
Diffstat (limited to 'chunk.go')
-rw-r--r--chunk.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/chunk.go b/chunk.go
index 9f09e55..321f046 100644
--- a/chunk.go
+++ b/chunk.go
@@ -38,6 +38,10 @@ func (c *Chunk) Reader(repo string) (io.Reader, error) {
return nil, &ChunkError{"Uninitialized chunk"}
}
+func (c *Chunk) isStored() bool {
+ return c.Id != nil
+}
+
type ChunkError struct {
err string
}