Skip to content

Commit 25d211e

Browse files
timayabi2020zengin
andauthored
Update src/Authentication/Authentication/custom/common/GraphUri.ps1
Co-authored-by: Mustafa Zengin <mzengin88@gmail.com>
1 parent e01ae3b commit 25d211e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication/Authentication/custom/common/GraphUri.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function GraphUri_RemoveNamespaceFromActionFunction {
114114
$Segment = $segment.Replace("microsoft.graph.","").Replace("()", "")
115115
# Get resource object name from segment if it exists. e.g get 'updateAudience' from windowsUpdates.updateAudience
116116
$ResourceObj = $Segment.Split(".")
117-
$Segment = $ResourceObj.Count -gt 1 ? $ResourceObj[$ResourceObj.Count-1] : $Segment
117+
$Segment = $ResourceObj[$ResourceObj.Count-1]
118118
$SegmentBuilder += "/$Segment"
119119
}
120120
$NewUri = $Uri -replace [Regex]::Escape($MatchedUriSegment), $SegmentBuilder

0 commit comments

Comments
 (0)