Skip to content

Commit

Permalink
Remove handling of beta, nightly, add dev
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Feb 13, 2024
1 parent 732d1d4 commit b2494b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/atom-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,15 @@ class AtomEnvironment {
// Public: Gets the release channel of the Pulsar application.
//
// Returns the release channel as a {String}. Will return a specific release channel
// name like 'beta' or 'nightly' if one is found in the Pulsar version or 'stable'
// name like 'dev' if one is found in the Pulsar version or 'stable'
// otherwise.
getReleaseChannel() {
return getReleaseChannel(this.getVersion());
}

// Public: Returns a {Boolean} that is `true` if the current version is an official release.
isReleasedVersion() {
return this.getReleaseChannel().match(/stable|beta|nightly/) != null;
return this.getReleaseChannel().match(/stable|dev/) != null;
}

// Public: Get the time taken to completely load the current window.
Expand Down
8 changes: 3 additions & 5 deletions src/command-installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ module.exports = class CommandInstaller {
}

getCommandNameForChannel(commandName) {
let channelMatch = this.appVersion.match(/beta|nightly/);
let channelMatch = this.appVersion.match(/dev/);
let channel = channelMatch ? channelMatch[0] : '';

switch (channel) {
case 'beta':
return `${commandName}-beta`;
case 'nightly':
return `${commandName}-nightly`;
case 'dev':
return `${commandName}-dev`;
default:
return commandName;
}
Expand Down

0 comments on commit b2494b6

Please sign in to comment.