mirror of
https://github.com/usememos/memos.git
synced 2025-03-24 06:30:09 +01:00
chore: fix linter
This commit is contained in:
parent
8ee56bd29f
commit
a376dc4dd6
@ -85,7 +85,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
|
||||
} else if upsert.Key == storepb.WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION {
|
||||
valueBytes, err = protojson.Marshal(upsert.GetTelegramIntegrationSetting())
|
||||
} else {
|
||||
return nil, errors.New(fmt.Sprintf("unsupported workspace setting key: %s", upsert.Key.String()))
|
||||
return nil, fmt.Errorf("unsupported workspace setting key: %v", upsert.Key)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to marshal workspace setting value")
|
||||
|
@ -95,7 +95,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
|
||||
} else if upsert.Key == storepb.WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION {
|
||||
valueBytes, err = protojson.Marshal(upsert.GetTelegramIntegrationSetting())
|
||||
} else {
|
||||
return nil, errors.New(fmt.Sprintf("unsupported workspace setting key: %s", upsert.Key.String()))
|
||||
return nil, fmt.Errorf("unsupported workspace setting key: %v", upsert.Key)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to marshal workspace setting value")
|
||||
|
@ -95,7 +95,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
|
||||
} else if upsert.Key == storepb.WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION {
|
||||
valueBytes, err = protojson.Marshal(upsert.GetTelegramIntegrationSetting())
|
||||
} else {
|
||||
return nil, errors.New(fmt.Sprintf("unsupported workspace setting key: %s", upsert.Key.String()))
|
||||
return nil, fmt.Errorf("unsupported workspace setting key: %v", upsert.Key)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to marshal workspace setting value")
|
||||
|
Loading…
x
Reference in New Issue
Block a user