Skip to content

Commit

Permalink
fix: revert small breaking change
Browse files Browse the repository at this point in the history
I gave a confusing review comment then failed to notice this change.
  • Loading branch information
Stebalien committed Oct 14, 2019
1 parent 5eb2643 commit 5fea32d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fslock.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Lock(confdir, lockFileName string) (io.Closer, error) {
}

// Locked checks if there is a lock already set.
func IsLocked(confdir, lockFile string) (bool, error) {
func Locked(confdir, lockFile string) (bool, error) {
log.Debugf("Checking lock")
if !util.FileExists(filepath.Join(confdir, lockFile)) {
log.Debugf("File doesn't exist: %s", filepath.Join(confdir, lockFile))
Expand Down
2 changes: 1 addition & 1 deletion fslock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func assertLock(t *testing.T, confdir, lockFile string, expected bool) {
t.Helper()

isLocked, err := lock.IsLocked(confdir, lockFile)
isLocked, err := lock.Locked(confdir, lockFile)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 5fea32d

Please sign in to comment.