Skip to content

Commit bbfcbf5

Browse files
committed
Remove another two spaces + change liboptions error back to quotes
1 parent de090aa commit bbfcbf5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class S3Adapter {
155155
Key: this._bucketPrefix + key_without_prefix,
156156
Body: data,
157157
};
158-
158+
159159
if (this._fileAcl) {
160160
if (this._fileAcl === 'none') {
161161
delete params.ACL;

lib/optionsFromArguments.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ const optionsFromArguments = function optionsFromArguments(args) {
4242
} else if (args.length === 2) {
4343
options.bucket = stringOrOptions;
4444
if (typeof args[1] !== 'object') {
45-
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
45+
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
4646
}
4747
otherOptions = args[1];
4848
} else if (args.length > 2) {
4949
if (typeof args[1] !== 'string' || typeof args[2] !== 'string') {
50-
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
50+
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
5151
}
5252
options.accessKey = args[0];
5353
options.secretKey = args[1];
@@ -81,7 +81,7 @@ const optionsFromArguments = function optionsFromArguments(args) {
8181
options.bucket = s3overrides.params.Bucket;
8282
}
8383
} else if (args.length > 2) {
84-
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
84+
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
8585
}
8686

8787
options = fromOptionsDictionaryOrDefault(options, 's3overrides', s3overrides);

spec/test.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ describe('S3Adapter tests', () => {
849849
};
850850
s3ClientMock.send.and.returnValue(Promise.resolve(mockS3Response));
851851
s3._s3Client = s3ClientMock;
852-
852+
853853
// Mock getFileLocation to return a presigned URL
854854
spyOn(s3, 'getFileLocation').and.returnValue(Promise.resolve('https://presigned-url.com/file.txt'));
855855

0 commit comments

Comments
 (0)