Skip to content

Commit cf46f3d

Browse files
committed
refactor: code style improvements for cross-ns IPM packages
1 parent c684c05 commit cf46f3d

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ ClassMethod GetContexts(onlyNamespaces As %Boolean) As %DynamicArray
28172817
try {
28182818
set $NAMESPACE = ns
28192819
&sql(OPEN C1)
2820-
throw:SQLCODE<0 ##class(%Exception.SQL).CreateFromSQLCODE(SQLCODE, %msg)
2820+
throw:(SQLCODE<0) ##class(%Exception.SQL).CreateFromSQLCODE(SQLCODE, %msg)
28212821
&sql(FETCH C1)
28222822
while (SQLCODE = 0) {
28232823
do contexts.%Push(ns_":"_name)

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
698698
}
699699

700700
self.getCurrentContext = function() {
701+
// URL pattern here is like webuidriver.csp/<namespace>/<InternalName of selected item>
701702
var args = window.location.href.split("webuidriver.csp/")[1].split("/");
702703
var context = args[0];
703704
if (args[1] && (args[1].indexOf(".ZPM") != -1)) {

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
698698
}
699699

700700
self.getCurrentContext = function() {
701+
// URL pattern here is like webuidriver.csp/<namespace>/<InternalName of selected item>
701702
var args = window.location.href.split("webuidriver.csp/")[1].split("/");
702703
var context = args[0];
703704
if (args[1] && (args[1].indexOf(".ZPM") != -1)) {

0 commit comments

Comments
 (0)