Skip to content

Commit

Permalink
style: naming changes and better type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-shuliu committed Nov 26, 2024
1 parent ba8b0d4 commit cf61825
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cls/IPM/Repo/Http/PackageService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class %IPM.Repo.Http.PackageService Extends (%RegisteredObject, %IPM.Repo.IPacka

Parameter ALLOWPREFIXINLOCATION = 1;

Property Location As %String;
Property Location As %IPM.DataType.RepoLocation;

Property Username As %String(MAXLEN = "");

Expand All @@ -15,18 +15,18 @@ Property Token As %String(MAXLEN = "");

Property TokenBasicAuth As %Boolean [ InitialExpression = 0 ];

ClassMethod GetSSLConfiguration(host) As %String
ClassMethod GetSSLConfiguration(name As %String) As %String
{
New $NAMESPACE
Set $NAMESPACE = "%SYS"

If '##class(Security.SSLConfigs).Exists(host) {
Do ##class(Security.SSLConfigs).Create(host)
If '##class(Security.SSLConfigs).Exists(name) {
Do ##class(Security.SSLConfigs).Create(name)
}
Quit host
Quit name
}

Method GetHttpRequest(tLocation = {..Location}) As %Net.HttpRequest
Method GetHttpRequest(tLocation As %IPM.DataType.RepoLocation = {..Location}) As %Net.HttpRequest
{
Set tRequest = ##class(%Net.HttpRequest).%New()

Expand Down

0 comments on commit cf61825

Please sign in to comment.