Skip to content

Commit

Permalink
Add the original nullity check back
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyLeslie committed May 23, 2024
1 parent e50efb9 commit 6995a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/lib/MinIOExternalStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class MinIOExternalStorage implements ExternalStorage {

public async hasVersioning(): Promise<Boolean> {
const versioning = await this._s3.getBucketVersioning(this.bucket);
return versioning != "" && versioning.Status === 'Enabled';
return versioning != "" && versioning && versioning.Status === 'Enabled';
}

public async versions(key: string, options?: { includeDeleteMarkers?: boolean }) {
Expand Down

0 comments on commit 6995a4a

Please sign in to comment.