You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the service is marked as deprecated and there is no comment, then add default deprecation comment.
164
169
// If the service has a comment but it does not include a deprecation notice, then append a default deprecation notice.
165
170
// If the service includes a deprecation notice at the beginning of the comment, prepend a comment stating the service is deprecated and use the included deprecation notice.
166
171
ifserv.GetOptions().GetDeprecated() {
167
172
ifcom=="" {
168
-
com=fmt.Sprintf("\n%s is deprecated.\n\nDeprecated: %[1]s may be removed in a future version.", serv.GetName())
173
+
com=fmt.Sprintf("\n%s is deprecated.\n\nDeprecated: %[1]s may be removed in a future version.", servName)
169
174
} elseifstrings.HasPrefix(com, "Deprecated:") {
170
-
com=fmt.Sprintf("\n%s is deprecated.\n\n%s", serv.GetName(), com)
175
+
com=fmt.Sprintf("\n%s is deprecated.\n\n%s", servName, com)
171
176
} elseif!containsDeprecated(com) {
172
-
com=fmt.Sprintf("%s\n\nDeprecated: %s may be removed in a future version.", com, serv.GetName())
177
+
com=fmt.Sprintf("%s\n\nDeprecated: %s may be removed in a future version.", com, servName)
0 commit comments