mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 02:48:30 -05:00
Notebook Code Cleanup + Utils Test (#11754)
* Cleanup + Utils Test * Removing unnecessary util method
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
import * as request from 'request';
|
||||
import * as loc from '../common/localizedConstants';
|
||||
import * as utils from '../common/utils';
|
||||
import * as vscode from 'vscode';
|
||||
import { RemoteBookDialogModel } from '../dialog/remoteBookDialogModel';
|
||||
import { GitHubRemoteBook } from '../book/githubRemoteBook';
|
||||
import { SharedRemoteBook } from '../book/sharedRemoteBook';
|
||||
import { winPlatform, macPlatform } from '../common/constants';
|
||||
|
||||
const assetNameRE = /([a-zA-Z0-9]+)(?:-|_)([a-zA-Z0-9.]+)(?:-|_)([a-zA-Z0-9]+).(zip|tar.gz|tgz)/;
|
||||
|
||||
@@ -73,7 +73,7 @@ export class RemoteBookController {
|
||||
public async getAssets(release?: IRelease): Promise<IAsset[]> {
|
||||
if (release) {
|
||||
let format: string[] = [];
|
||||
if (utils.getOSPlatform() === utils.Platform.Windows || utils.getOSPlatform() === utils.Platform.Mac) {
|
||||
if (process.platform === winPlatform || process.platform === macPlatform) {
|
||||
format = ['zip'];
|
||||
} else {
|
||||
format = ['tar.gz', 'tgz'];
|
||||
|
||||
Reference in New Issue
Block a user