Skip to content

Commit

Permalink
Silence some linter errors (#2579)
Browse files Browse the repository at this point in the history
This fixes a couple of "badCall: suspicious Join on 1 argument" warning
from golangci-lint.
  • Loading branch information
rhafer authored Feb 23, 2022
1 parent f44f2a1 commit 2056f9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/fs/owncloudsql/owncloudsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -1893,12 +1893,12 @@ func (fs *owncloudsqlfs) propagate(ctx context.Context, leafPath string) error {
Str("leafPath", leafPath).
Str("currentPath", currentPath).
Msg("propagating change")
parentFi, err := os.Stat(filepath.Join(currentPath))
parentFi, err := os.Stat(currentPath)
if err != nil {
return err
}
if fi.ModTime().UnixNano() > parentFi.ModTime().UnixNano() {
if err := os.Chtimes(filepath.Join(currentPath), fi.ModTime(), fi.ModTime()); err != nil {
if err := os.Chtimes(currentPath, fi.ModTime(), fi.ModTime()); err != nil {
appctx.GetLogger(ctx).Error().
Err(err).
Str("leafPath", leafPath).
Expand All @@ -1907,7 +1907,7 @@ func (fs *owncloudsqlfs) propagate(ctx context.Context, leafPath string) error {
return err
}
}
fi, err = os.Stat(filepath.Join(currentPath))
fi, err = os.Stat(currentPath)
if err != nil {
return err
}
Expand Down

0 comments on commit 2056f9d

Please sign in to comment.