Skip to content

Commit 0c6d585

Browse files
committed
Fix tslint issues
Signed-off-by: Fred Bricon <fbricon@gmail.com>
1 parent 9359130 commit 0c6d585

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/refactorAction.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ async function moveFile(languageClient: LanguageClient, fileUris: Uri[]) {
130130
const packageNodeItems = moveDestinations.destinations.map((packageNode) => {
131131
const packageUri: Uri = packageNode.uri ? Uri.parse(packageNode.uri) : null;
132132
const displayPath: string = packageUri ? workspace.asRelativePath(packageUri, true) : packageNode.path;
133-
return {
134-
label: (packageNode.isParentOfSelectedFile ? '* ' : '') + packageNode.displayName,
135-
description: displayPath,
136-
packageNode,
137-
}
133+
return {
134+
label: (packageNode.isParentOfSelectedFile ? '* ' : '') + packageNode.displayName,
135+
description: displayPath,
136+
packageNode,
137+
};
138138
});
139139

140-
let placeHolder = (fileUris.length === 1) ? `Choose the target package for ${getFileNameFromUri(fileUris[0])}.`
140+
const placeHolder = (fileUris.length === 1) ? `Choose the target package for ${getFileNameFromUri(fileUris[0])}.`
141141
: `Choose the target package for ${fileUris.length} selected files.`;
142-
let selectPackageNodeItem = await window.showQuickPick(packageNodeItems, {
142+
const selectPackageNodeItem = await window.showQuickPick(packageNodeItems, {
143143
placeHolder,
144144
});
145145
if (!selectPackageNodeItem) {
@@ -189,7 +189,7 @@ function getFileNameFromUri(uri: Uri): string {
189189
}
190190

191191
function hasCommonParent(uris: Uri[]): boolean {
192-
if (uris == null || uris.length <= 1) {
192+
if (uris === null || uris.length <= 1) {
193193
return true;
194194
}
195195

@@ -237,7 +237,7 @@ async function saveEdit(edit: WorkspaceEdit) {
237237
for (const fileUri of touchedFiles) {
238238
const uri: Uri = Uri.parse(fileUri);
239239
const document: TextDocument = await workspace.openTextDocument(uri);
240-
if (document == null) {
240+
if (document === null) {
241241
continue;
242242
}
243243

0 commit comments

Comments
 (0)