golint and go vet

This commit is contained in:
sm
2016-05-19 21:29:17 -07:00
parent 284a478a2f
commit 53b1be748a
4 changed files with 17 additions and 3 deletions
+3
View File
@@ -8,6 +8,7 @@ import (
"time"
)
// Media is the high-level filetype that can be arranged.
type Media struct {
Path string
Hash string
@@ -15,6 +16,8 @@ type Media struct {
Time time.Time
}
// Move is called to push Media into its final destination, by content address
// and by date.
func (m Media) Move(root string) error {
f, err := os.Open(m.Path)
if err != nil {