Skip to content

Commit 3ea71ce

Browse files
Copilotfgreinacher
andcommitted
Fix formatting issues with prettier
Co-authored-by: fgreinacher <[email protected]>
1 parent d6849da commit 3ea71ce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/publish.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export default async (pluginConfig, context) => {
6060
if (isPlainObject(asset)) {
6161
const templatedAsset = { ...asset };
6262
if (asset.path) {
63-
templatedAsset.path = Array.isArray(asset.path)
64-
? asset.path.map(pattern => template(pattern)(context))
63+
templatedAsset.path = Array.isArray(asset.path)
64+
? asset.path.map((pattern) => template(pattern)(context))
6565
: template(asset.path)(context);
6666
}
6767
templatedAsset.url = asset.url ? template(asset.url)(context) : asset.url;
@@ -73,7 +73,7 @@ export default async (pluginConfig, context) => {
7373
return templatedAsset;
7474
} else if (Array.isArray(asset)) {
7575
// Handle array of glob patterns
76-
return asset.map(pattern => template(pattern)(context));
76+
return asset.map((pattern) => template(pattern)(context));
7777
} else {
7878
// String asset path
7979
return template(asset)(context);

test/publish.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,15 +722,15 @@ test.serial("Publish a release with templated wildcard path", async (t) => {
722722
const options = { repositoryUrl: `https://gitlab.com/${owner}/${repo}.git` };
723723
const encodedProjectPath = encodeURIComponent(`${owner}/${repo}`);
724724
const encodedGitTag = encodeURIComponent(nextRelease.gitTag);
725-
725+
726726
const assets = ["versioned/upload_v${nextRelease.version}.txt"];
727-
727+
728728
const uploaded = {
729729
url: "/uploads/upload_v1.0.0.txt",
730730
alt: "upload_v1.0.0.txt",
731731
full_path: "/-/project/4/66dbcd21ec5d24ed6ea225176098d52b/upload_v1.0.0.txt",
732732
};
733-
733+
734734
const gitlab = authenticate(env)
735735
.post(`/projects/${encodedProjectPath}/releases`, {
736736
tag_name: nextRelease.gitTag,

0 commit comments

Comments
 (0)