Skip to content

Commit

Permalink
Correction to make codecov happy
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianCurtin committed Jan 17, 2025
1 parent 5abd18a commit 537a5ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/optionsFromArguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const optionsFromArguments = function optionsFromArguments(args) {
} else if (args.length === 2) {
options.bucket = stringOrOptions;
if (typeof args[1] !== 'object') {
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
}
otherOptions = args[1];
} else if (args.length > 2) {
if (typeof args[1] !== 'string' || typeof args[2] !== 'string') {
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
}
options.accessKey = args[0];
options.secretKey = args[1];
Expand Down Expand Up @@ -81,7 +81,7 @@ const optionsFromArguments = function optionsFromArguments(args) {
options.bucket = s3overrides.params.Bucket;
}
} else if (args.length > 2) {
throw new Error("Failed to configure S3Adapter. Arguments don't make sense");
throw new Error('Failed to configure S3Adapter. Arguments don\'t make sense');
}

options = fromOptionsDictionaryOrDefault(options, 's3overrides', s3overrides);
Expand Down

0 comments on commit 537a5ce

Please sign in to comment.