Skip to content

Commit

Permalink
repository: go fmt and golint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrand committed Mar 12, 2015
1 parent 716932a commit 2e8b1b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions repository/clientRepository.go
Expand Up @@ -9,12 +9,12 @@ import (
"path/filepath"
"time"

"github.com/hoffie/larasync/helpers"
"github.com/hoffie/larasync/helpers/atomic"
"github.com/hoffie/larasync/helpers/crypto"
"github.com/hoffie/larasync/helpers/path"
"github.com/hoffie/larasync/repository/nib"
"github.com/hoffie/larasync/repository/tracker"
"github.com/hoffie/larasync/helpers"
)

// ClientRepository is a Repository from a client-side view; it has all the keys
Expand Down Expand Up @@ -615,9 +615,8 @@ func (r *ClientRepository) revisionIsFile(absPath string, rev *nib.Revision) boo
if os.IsNotExist(err) {
if rev.IsDelete() {
return true
} else {
return false
}
return false
}

ids, err := r.fileToChunkIds(absPath)
Expand Down
2 changes: 1 addition & 1 deletion repository/clientRepositoryDeleteItem_test.go
@@ -1,8 +1,8 @@
package repository

import (
"os"
"io/ioutil"
"os"
"path/filepath"

. "gopkg.in/check.v1"
Expand Down
6 changes: 3 additions & 3 deletions repository/tracker/databaseNib.go
Expand Up @@ -28,7 +28,7 @@ func (n NIBLookup) TableName() string {
// to track NIB changes and implements the NIBTracker repository.
func NewDatabaseNIBTracker(dbLocation string, repositoryPath string) (NIBTracker, error) {
nibTracker := &DatabaseNIBTracker{
dbLocation: dbLocation,
dbLocation: dbLocation,
repositoryPath: repositoryPath,
}
_, statErr := os.Stat(dbLocation)
Expand All @@ -45,8 +45,8 @@ func NewDatabaseNIBTracker(dbLocation string, repositoryPath string) (NIBTracker
// DatabaseNIBTracker implements the NIBTracker interface and utilizes
// a sqlite database backend for persistence.
type DatabaseNIBTracker struct {
dbLocation string
db *gorm.DB
dbLocation string
db *gorm.DB
repositoryPath string
}

Expand Down

0 comments on commit 2e8b1b4

Please sign in to comment.