mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Update return types that can return undefined (#14660)
This commit is contained in:
@@ -1218,11 +1218,11 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
return this._connectionStatusManager.isConnecting(fileUri);
|
||||
}
|
||||
|
||||
public getConnectionProfile(fileUri: string): interfaces.IConnectionProfile {
|
||||
public getConnectionProfile(fileUri: string): interfaces.IConnectionProfile | undefined {
|
||||
return this._connectionStatusManager.isConnected(fileUri) ? this._connectionStatusManager.getConnectionProfile(fileUri) : undefined;
|
||||
}
|
||||
|
||||
public getConnectionInfo(fileUri: string): ConnectionManagementInfo {
|
||||
public getConnectionInfo(fileUri: string): ConnectionManagementInfo | undefined {
|
||||
return this._connectionStatusManager.isConnected(fileUri) ? this._connectionStatusManager.findConnection(fileUri) : undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user