Skip to content

Commit

Permalink
One more golangci-lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 14, 2021
1 parent 878db30 commit 5721b63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dcompose/dcompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func New(ld string, pathprefix string) (*JobCompose, error) {

logdriver = ld
hostworkingdir = strings.TrimPrefix(wd, pathprefix)
if strings.HasPrefix(hostworkingdir, "/") {
hostworkingdir = strings.TrimPrefix(hostworkingdir, "/")
}
hostworkingdir = strings.TrimPrefix(hostworkingdir, "/")

return &JobCompose{
Version: "2.2",
Expand Down

0 comments on commit 5721b63

Please sign in to comment.