Skip to content

Commit 23610b4

Browse files
Scott DoverScott Dover
authored andcommitted
chore: respond to code review
Signed-off-by: Scott Dover <[email protected]>
1 parent c9b4fd9 commit 23610b4

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

client/src/components/LibraryNavigator/LibraryModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import { ProgressLocation, l10n, window } from "vscode";
44

5-
import { SortModelItem } from "ag-grid-community";
5+
import type { SortModelItem } from "ag-grid-community";
66
import { Writable } from "stream";
77

88
import PaginatedResultSet from "./PaginatedResultSet";

client/src/components/LibraryNavigator/PaginatedResultSet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import { SortModelItem } from "ag-grid-community";
3+
import type { SortModelItem } from "ag-grid-community";
44

55
class PaginatedResultSet<T> {
66
constructor(

client/src/components/LibraryNavigator/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import { SortModelItem } from "ag-grid-community";
3+
import type { SortModelItem } from "ag-grid-community";
44

55
import { ColumnCollection, TableInfo } from "../../connection/rest/api/compute";
66

client/src/connection/itc/ItcLibraryAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import { l10n } from "vscode";
44

5-
import { SortModelItem } from "ag-grid-community";
5+
import type { SortModelItem } from "ag-grid-community";
66
import { ChildProcessWithoutNullStreams } from "child_process";
77

88
import { onRunError } from "../../commands/run";

client/src/connection/itc/script.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class SASRunner{
303303
Write-Host $(ConvertTo-Json -Depth 10 -InputObject $result -Compress)
304304
}
305305
306-
[object[]] GetColumnData([string]$libname, [string]$memname) {
306+
[void]GetColumns([string]$libname, [string]$memname) {
307307
$objRecordSet = New-Object -comobject ADODB.Recordset
308308
$objRecordSet.ActiveConnection = $this.dataConnection
309309
$query = @"
@@ -338,12 +338,6 @@ class SASRunner{
338338
$parsedRows += $parsedRow
339339
}
340340
341-
return $parsedRows
342-
}
343-
344-
[void]GetColumns([string]$libname, [string]$memname) {
345-
$parsedRows = $this.GetColumnData($libname, $memname)
346-
347341
Write-Host $(ConvertTo-Json -Depth 10 -InputObject $parsedRows -Compress)
348342
}
349343
@@ -606,7 +600,7 @@ class SASRunner{
606600
$objRecordSet = New-Object -comobject ADODB.Recordset
607601
$objRecordSet.ActiveConnection = $this.dataConnection
608602
$query = @"
609-
select memname, memtype, crdate, modate, nobs, nvar, compress,
603+
select memname, memtype, crdate, modate, nobs, nvar, compress,
610604
memlabel, typemem, filesize, delobs
611605
from sashelp.vtable
612606
where libname='$libname' and memname='$memname';

client/src/connection/rest/RestLibraryAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright © 2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import { SortModelItem } from "ag-grid-community";
3+
import type { SortModelItem } from "ag-grid-community";
44
import { AxiosResponse } from "axios";
55

66
import { getSession } from "..";

0 commit comments

Comments
 (0)