Skip to content

Commit

Permalink
fix: fix operator precedence when testing fs repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-shuliu committed Feb 11, 2025
1 parent 48dc669 commit 42d0bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cls/IPM/General/TempLocalRepoManager.cls
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ClassMethod SkipCreate(location As %String) As %Boolean [ Internal ]
Set query = "SELECT COUNT(*) As Total FROM %IPM_Repo_Filesystem.Definition WHERE Root = ?"
Set rs = ##class(%SQL.Statement).%ExecDirect(, query, location)
$$$ThrowSQLIfError(rs.%SQLCODE, rs.%Message)
If rs.%Next() && rs.%Get("Total") > 0 {
If rs.%Next() && (rs.%Get("Total") > 0) {
Return 1
}
Return 0
Expand Down

0 comments on commit 42d0bf0

Please sign in to comment.