Skip to content

Commit c0853ff

Browse files
committed
(maint) Fix shallowCloneObject method return
This commit corrects the shallowCloneObject method to return `any` instead of `Object` to fix compiler errors because `Object` is more restrictive than `any`.
1 parent 5c487a5 commit c0853ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/debugAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function startDebuggingProxy(config: DebugAdapterConfiguration, logger:ILogger,
9898
return debugServiceSocket;
9999
}
100100

101-
function shallowCloneObject(value:Object): Object {
101+
function shallowCloneObject(value:Object): any {
102102
const clone: Object = {};
103103
for (const propertyName in value){
104104
if (value.hasOwnProperty(propertyName)){

src/rubyHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class RubyHelper {
104104
}
105105
}
106106

107-
private static shallowCloneObject(value:Object): Object {
107+
private static shallowCloneObject(value:Object): any {
108108
const clone: Object = {};
109109
for (const propertyName in value){
110110
if (value.hasOwnProperty(propertyName)){

0 commit comments

Comments
 (0)