Skip to content

Commit

Permalink
Fix issues pointed by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
denisonbarbosa committed Jan 6, 2025
1 parent fecb075 commit e828d25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/ad/backends/winbind/winbind.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type Winbind struct {
config Config
}

// Config for winbind backend
// Config for winbind backend.
type Config struct {
ADServer string `mapstructure:"ad_server"` // bypass winbind and use this server
ADDomain string `mapstructure:"ad_domain"` // bypass domain name detection and use this domain
Expand Down
2 changes: 1 addition & 1 deletion internal/ad/krb5.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"github.com/leonelquinteros/gotext"
)

// ErrTicketNotPresent is returned when the ticket cache is not present or not accessible
// ErrTicketNotPresent is returned when the ticket cache is not present or not accessible.
var ErrTicketNotPresent = errors.New(gotext.Get("ticket not found or not accessible"))

// TicketPath returns the path of the default kerberos ticket cache for the
Expand Down
2 changes: 1 addition & 1 deletion internal/policies/mount/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type msg struct {
// GIOChannel complexity.
// The callbacks in gio allow for additional data to passed as gpointers, but we can't use it to
// pass a channel pointer due to the CGo rules. It emitted the following error:
// "panic: runtime error: cgo argument has Go pointer to Go pointer"
// "panic: runtime error: cgo argument has Go pointer to Go pointer".
var mountsChan chan msg

// RunMountForCurrentUser reads the specified file and tries to mount the parsed entries for the
Expand Down

0 comments on commit e828d25

Please sign in to comment.