Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Feb 11, 2018
1 parent 82ff9dc commit a548f09
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 22 deletions.
3 changes: 1 addition & 2 deletions src/targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import * as deploy_values from './values';
import * as deploy_workspaces from './workspaces';
import * as Enumerable from 'node-enumerable';
import * as i18 from './i18';
import * as Minimatch from 'minimatch';
import * as Moment from 'moment';
import * as Path from 'path';
import * as SanitizeFilename from 'sanitize-filename';
Expand Down Expand Up @@ -1036,7 +1035,7 @@ export async function mapFilesForTarget<TFile extends deploy_contracts.WithNameA
continue;
}

const NEW_MAPPING = await getNameAndPathForFileDeployment(
const NEW_MAPPING = getNameAndPathForFileDeployment(
target, FULL_PATH,
MAPPING_SCOPE_DIRS
);
Expand Down
1 change: 0 additions & 1 deletion src/targets/operations/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import * as deploy_helpers from '../../helpers';
import * as deploy_log from '../../log';
import * as deploy_targets from '../../targets';
import * as Path from 'path';
import * as vscode from 'vscode';


/**
Expand Down
6 changes: 1 addition & 5 deletions src/targets/operations/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ import * as deploy_contracts from '../../contracts';
import * as deploy_events from '../../events';
import * as deploy_helpers from '../../helpers';
import * as deploy_http from '../../http';
import * as deploy_log from '../../log';
import * as deploy_session from '../../session';
import * as deploy_targets from '../../targets';
import * as i18 from '../../i18';
import * as OS from 'os';
import * as Path from 'path';
import * as Url from 'url';
import * as vscode from 'vscode';


/**
Expand Down Expand Up @@ -197,7 +193,7 @@ export async function execute(context: deploy_targets.TargetOperationExecutionCo
bodyScript));
}

const BODY_MODULE = await deploy_helpers.loadModule<HttpBodyModule>(bodyScriptFullPath);
const BODY_MODULE = deploy_helpers.loadModule<HttpBodyModule>(bodyScriptFullPath);
if (BODY_MODULE) {
const GET_BODY = BODY_MODULE.getBody;
if (GET_BODY) {
Expand Down
1 change: 0 additions & 1 deletion src/targets/operations/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import * as deploy_helpers from '../../helpers';
import * as deploy_targets from '../../targets';
import * as vscode from 'vscode';


/**
Expand Down
3 changes: 1 addition & 2 deletions src/targets/operations/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import * as deploy_contracts from '../../contracts';
import * as deploy_events from '../../events';
import * as deploy_helpers from '../../helpers';
import * as deploy_log from '../../log';
import * as deploy_session from '../../session';
import * as deploy_targets from '../../targets';
import * as i18 from '../../i18';
Expand Down Expand Up @@ -96,7 +95,7 @@ export async function execute(context: deploy_targets.TargetOperationExecutionCo
scriptFile));
}

const SCRIPT_MODULE = await deploy_helpers.loadModule<ScriptTargetOperationModule>(scriptFullPath);
const SCRIPT_MODULE = deploy_helpers.loadModule<ScriptTargetOperationModule>(scriptFullPath);
if (SCRIPT_MODULE) {
const EXECUTE = SCRIPT_MODULE.execute;
if (EXECUTE) {
Expand Down
1 change: 0 additions & 1 deletion src/targets/operations/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import * as deploy_contracts from '../../contracts';
import * as deploy_helpers from '../../helpers';
import * as deploy_targets from '../../targets';
import * as Enumerable from 'node-enumerable';
Expand Down
2 changes: 2 additions & 0 deletions src/test/extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */

/**
* This file is part of the vscode-deploy-reloaded distribution.
* Copyright (c) Marcel Joachim Kloubert.
Expand Down
5 changes: 2 additions & 3 deletions src/tools/sendfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const DEFAULT_PORT = 23979;
const LAST_PORT_KEY = "vscdrLastReceiveFileHostPort";
const LAST_REMOTE_ADDR_KEY = "vscdrLastSendFileRemoteAddress";
let server: Net.Server;
const SERVER_BTN_COMMAND = "";
let serverButton: vscode.StatusBarItem;

/**
Expand Down Expand Up @@ -113,7 +112,7 @@ export async function receiveFile(context: vscode.ExtensionContext) {
context.globalState.update(LAST_PORT_KEY, port).then(() => {
}, (err) => {
deploy_log.CONSOLE
.trace(err, "tools.sendfile.receiveFile('updateLastPort')")
.trace(err, "tools.sendfile.receiveFile('updateLastPort')");
});

serverButton = vscode.window.createStatusBarItem();
Expand All @@ -123,7 +122,7 @@ export async function receiveFile(context: vscode.ExtensionContext) {
serverButton.tooltip = i18.t('tools.sendOrReceiveFile.receive.button.tooltip');
serverButton.show();

const NEW_SERVER = server = await SimpleSocket.listen(port, (err, remoteConnection) => {
server = await SimpleSocket.listen(port, (err, remoteConnection) => {
if (err) {
closeServer();

Expand Down
8 changes: 1 addition & 7 deletions src/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import * as deploy_gui from './gui';
import * as deploy_helpers from './helpers';
import * as deploy_list from './list';
import * as deploy_log from './log';
import * as deploy_mappings from './mappings';
import * as deploy_objects from './objects';
import * as deploy_output from './output';
import * as deploy_packages from './packages';
Expand All @@ -50,7 +49,6 @@ import * as i18 from './i18';
import * as i18next from 'i18next';
const MergeDeep = require('merge-deep');
import * as Moment from 'moment';
import * as OS from 'os';
import * as Path from 'path';
import * as vscode from 'vscode';

Expand Down Expand Up @@ -572,7 +570,7 @@ export class Workspace extends deploy_objects.DisposableBase implements deploy_c
if (deploy_helpers.toBooleanSafe(settings.isMustHave)) {
// must match

const SELECTED_ITEM = await this.showErrorMessage<deploy_contracts.MessageItemWithValue>(
await this.showErrorMessage<deploy_contracts.MessageItemWithValue>(
i18.t('requirements.conditions.mustMatch',
NAME),
{
Expand Down Expand Up @@ -1393,8 +1391,6 @@ export class Workspace extends deploy_objects.DisposableBase implements deploy_c
public getSelectedSwitchOption(target: SwitchTarget): SwitchTargetOption | false {
const ME = this;

const MY_ID = deploy_helpers.toStringSafe(ME.id);

if (ME.canBeHandledByMe(target)) {
const ALL_OPTIONS = ME.getAllSwitchOptions(target);
if (ALL_OPTIONS.length > 0) {
Expand Down Expand Up @@ -1875,8 +1871,6 @@ export class Workspace extends deploy_objects.DisposableBase implements deploy_c
section: string;
}

const ALTERNATIVE_FILENAME = './.vscode/deploy.json';
const ALTERNATIVE_SECTION_NAME = 'deploy';
const DEFAULT_DIR = this.folder.uri.fsPath;
const DEFAULT_FILENAME = './.vscode/settings.json';
const DEFAULT_FILE = Path.join(
Expand Down

0 comments on commit a548f09

Please sign in to comment.