Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 26, 2023
1 parent 29acfe6 commit 9faad9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/local/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (l *localLockBackend) Timestamp() *time.Time {
}

// Create implements main.LockBackend.
func (l *localLockBackend) Create(path, refname string) (transfer.Lock, error) {
func (l *localLockBackend) Create(path, _ string) (transfer.Lock, error) {
id := localBackendLock{}.HashFor(path)
var b bytes.Buffer
b.WriteString(fmt.Sprintf("%s:%d:", LocalBackendLockVersion, l.Timestamp().Unix()))
Expand Down
4 changes: 2 additions & 2 deletions transfer/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type noopLogger struct{}
var _ Logger = (*noopLogger)(nil)

// Log implements Logger.
func (*noopLogger) Log(v ...interface{}) {}
func (*noopLogger) Log(...interface{}) {}

// Logf implements Logger.
func (*noopLogger) Logf(format string, v ...interface{}) {}
func (*noopLogger) Logf(string, ...interface{}) {}
2 changes: 1 addition & 1 deletion transfer/oid.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (p Pointer) IsValid() bool {
return true
}

// RelativePath returns the relative storage path of the pointer
// RelativePath returns the relative storage path of the pointer.
func (p Pointer) RelativePath() string {
if len(p.Oid) < 5 {
return p.Oid
Expand Down
1 change: 1 addition & 0 deletions transfer/pktline.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewPktline(r io.Reader, w io.Writer, logger Logger) *Pktline {
Pktline: pktline.NewPktline(r, w),
r: r,
w: w,
logger: logger,
}
}

Expand Down

0 comments on commit 9faad9c

Please sign in to comment.