Skip to content

Commit

Permalink
Added lint exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jul 7, 2022
1 parent d8063fd commit 43e076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var gormSourceDir string

// On init, get the source file and store as a variable
func init() {
_, file, _, _ := runtime.Caller(0)
_, file, _, _ := runtime.Caller(0) // nolint: dogsled // other variables not needed
// compatible solution to get gorm source directory with various operating systems
gormSourceDir = regexp.MustCompile(`gorm\.go`).ReplaceAllString(file, "")
}
Expand Down

0 comments on commit 43e076a

Please sign in to comment.