fix linting

This commit is contained in:
alexweininger 2021-05-29 10:16:37 -05:00
parent 4231a0552b
commit 5eca23247a

View file

@ -7,7 +7,7 @@ import { TagsTreeItem } from "../../tree/functions/tags/TagsTreeItem";
import { selectWorkspaceFolder } from "../../utils/workspace"; import { selectWorkspaceFolder } from "../../utils/workspace";
export async function createTag(item: TagsTreeItem | Uri): Promise<void> { export async function createTag(item: TagsTreeItem | Uri): Promise<void> {
if (item instanceof Uri) { if (item instanceof Uri) {
window.withProgress({ location: ProgressLocation.Notification, title: "Creating tag..." }, async (progress, token) => { window.withProgress({ location: ProgressLocation.Notification, title: "Creating tag..." }, async (_progress, _token) => {
await createTagFromUri(item); await createTagFromUri(item);
}); });
return; return;
@ -16,7 +16,7 @@ export async function createTag(item: TagsTreeItem | Uri): Promise<void> {
if (item instanceof TagsTreeItem) { if (item instanceof TagsTreeItem) {
const folder = await selectWorkspaceFolder("Select folder of your function code."); const folder = await selectWorkspaceFolder("Select folder of your function code.");
console.log(folder); console.log(folder);
window.withProgress({ location: ProgressLocation.Notification, title: "Creating tag..." }, async (progress, token) => { window.withProgress({ location: ProgressLocation.Notification, title: "Creating tag..." }, async (_progress, _token) => {
await createTagFromUri(Uri.parse(folder)); await createTagFromUri(Uri.parse(folder));
}); });
} }