Skip to content

Commit

Permalink
Improve docId getter and documentation (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvschneid authored Jul 20, 2023
1 parent c419b33 commit f5d9df9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source-1.0/spec/aws/aws-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ need to explicitly configure the ``cloudTrailEventSource`` setting.
.. _service-doc-id:

``docId``
===========================
=========

The ``docId`` property is a ``string`` value that is used to implement linking
between service and SDK documentation for AWS services.
Expand Down
2 changes: 1 addition & 1 deletion docs/source-2.0/aws/aws-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ need to explicitly configure the ``cloudTrailEventSource`` setting.
.. _service-doc-id:

``docId``
===========================
=========

The ``docId`` property is a ``string`` value that is used to implement linking
between service and SDK documentation for AWS services.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public String getCloudTrailEventSource() {
* @return Returns the documentation identifier value for the service name.
*/
public String getDocId(Model model) {
return getDocId().orElse(buildDefaultDocId(model));
return getDocId().orElseGet(() -> buildDefaultDocId(model));
}

protected Optional<String> getDocId() {
Expand Down

0 comments on commit f5d9df9

Please sign in to comment.