Apply review suggestion

Co-authored-by: Michael Nebel <michaelnebel@github.com>
This commit is contained in:
Joe Farebrother
2023-06-23 17:00:52 +01:00
committed by GitHub
parent 52841e9005
commit b2d54842a6

View File

@@ -92,7 +92,7 @@ private predicate physicalRouteMatches(string route, string actual) {
route = actual
or
route.charAt(0) = "~" and
exists(string dir | actual = dir + route.substring(1, route.length()) + ".cs")
exists(string dir | actual = dir + route.suffix(1) + ".cs")
}
/** An expression that indicates that some authorization/authentication check is being performed. */