mirror of
https://github.com/kopia/kopia.git
synced 2026-01-24 14:28:06 -05:00
* fixed godot linter errors * reformatted source with gofumpt * disabled some linters * fixed nolintlint warnings * fixed gci warnings * lint: fixed 'nestif' warnings * lint: fixed 'exhaustive' warnings * lint: fixed 'gocritic' warnings * lint: fixed 'noctx' warnings * lint: fixed 'wsl' warnings * lint: fixed 'goerr113' warnings * lint: fixed 'gosec' warnings * lint: upgraded linter to 1.30.0 * lint: more 'exhaustive' warnings Co-authored-by: Nick <nick@kasten.io>
9 lines
215 B
Go
9 lines
215 B
Go
// +build !profiling
|
|
|
|
package cli
|
|
|
|
// withProfiling runs the given callback with profiling enabled, configured according to command line flags.
|
|
func withProfiling(callback func() error) error {
|
|
return callback()
|
|
}
|