Skip to content

Commit 088301e

Browse files
committed
clean up code
1 parent 1eeefef commit 088301e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cls/SourceControl/Git/Extension.cls

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,9 @@ InternalName'="" && ##class(Utils).IsInSourceControl(##class(Utils).NormalizeInt
254254
Method OnBeforeDelete(InternalName As %String) As %Status
255255
{
256256
if ..IsReadOnly(InternalName) {
257-
set ^mtempVG("dbg",$i(^mtempVG)) = "readonly"
258257
// throw error if deleting readonly item
259258
Throw ##class(%Exception.General).%New("Can't delete in locked environment")
260259
} else {
261-
set ^mtempVG("dbg",$i(^mtempVG)) = "not readonly"
262260
set context = ##class(SourceControl.Git.PackageManagerContext).ForInternalName(InternalName)
263261
set InternalName = ##class(Utils).NormalizeInternalName(InternalName)
264262
set Filename = ##class(Utils).FullExternalName(InternalName)
@@ -267,7 +265,6 @@ Method OnBeforeDelete(InternalName As %String) As %Status
267265
}
268266
quit $$$OK
269267
}
270-
set ^mtempVG("dbg",$i(^mtempVG)) = "outside, after if readonly"
271268
}
272269

273270
/// Called after an item is deleted.

0 commit comments

Comments
 (0)