Skip to content

Commit a796627

Browse files
committed
feat: resource name removed
1 parent 9749013 commit a796627

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

lib/external-resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class ExternalResources extends Events {
203203
force,
204204
} );
205205

206-
let logText = `Updating resounrce "${ resource.name }" ... `;
206+
let logText = `Updating resounrce "${ resource.id }" ... `;
207207

208208
if ( res.ok ) {
209209
logText += ansi.ok( " " + res.statusText + " " );

lib/external-resources/resource.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default class ExternalResource extends Events {
1313
#repositoryName;
1414
#tag;
1515
#resourceName;
16-
#name;
1716
#indexPath;
1817
#remoteIndexUrl;
1918
#downloadUrl;
@@ -30,8 +29,6 @@ export default class ExternalResource extends Events {
3029

3130
[ this.#repositoryOwner, this.#repositoryName, this.#tag, this.#resourceName ] = id.split( "/" );
3231

33-
this.#name = this.#repositoryName + "/" + this.#resourceName;
34-
3532
this.#indexPath = this.#location + ".json";
3633

3734
this.#remoteIndexUrl = `https://github.com/${ this.#repositoryOwner }/${ this.#repositoryName }/releases/download/${ this.#tag }/${ this.#resourceName }.json`;
@@ -44,10 +41,6 @@ export default class ExternalResource extends Events {
4441
return this.#id;
4542
}
4643

47-
get name () {
48-
return this.#name;
49-
}
50-
5144
get isInstalled () {
5245
if ( this.#isInstalled == null ) {
5346
this.#readIndexSync();

0 commit comments

Comments
 (0)