Skip to content

Commit a25e0d3

Browse files
authored
generator tool fix (Azure#22654)
1 parent ed8dd1f commit a25e0d3

File tree

3 files changed

+94
-94
lines changed

3 files changed

+94
-94
lines changed

eng/tools/generator/cmd/v2/common/fileProcessor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ func ReplaceReadmeNewClientName(packageRootPath string, exports exports.Content)
668668
}
669669
}
670670

671-
if oldClientName == fmt.Sprintf("%s()", clientName) {
671+
if clientName == "" || oldClientName == "" || oldClientName == fmt.Sprintf("%s()", clientName) {
672672
return nil
673673
}
674674

0 commit comments

Comments
 (0)