Skip to content

Commit

Permalink
fix(CellsAPI): remove unnecessary configuration validation
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich committed Feb 25, 2025
1 parent 2d685ce commit be8d096
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/api-client/src/cells/CellsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export class CellsAPI {
private readonly client: NodeServiceApi;

constructor(httpClient: HttpClient, storageService?: CellsStorage) {
if (!storageService && (!httpClient.config.cells || !httpClient.config.cells.s3)) {
throw new Error('CellsAPI requires either a storage service or a valid cells S3 configuration');
}

this.storageService = storageService || new S3Service(httpClient.config.cells!.s3);

this.client = new NodeServiceApi(undefined, undefined, httpClient.client);
Expand Down

0 comments on commit be8d096

Please sign in to comment.