server/periodic.go
Method Backend.Periodic
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (b *Backend) Periodic(ctx context.Context, req *logical.Request) error {
entry, err := req.Storage.Get(ctx, lastPeriodicRunTimestampKey)
if err != nil {
return fmt.Errorf("unable to get key %q from storage: %w", lastPeriodicRunTimestampKey, err)
}
Method Backend.Periodic
has 11 return statements (exceeds 4 allowed). Open
Open
func (b *Backend) Periodic(ctx context.Context, req *logical.Request) error {
entry, err := req.Storage.Get(ctx, lastPeriodicRunTimestampKey)
if err != nil {
return fmt.Errorf("unable to get key %q from storage: %w", lastPeriodicRunTimestampKey, err)
}