Skip to content

Commit efd5c2b

Browse files
kevmooprefanatic
andauthored
Apply suggestions from code review
Co-authored-by: Cody Goldberg <cody@goldberg.fyi>
1 parent 1a36004 commit efd5c2b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

gcp/lib/src/metadata.dart

+4-9
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ enum MetadataValue {
8181
return result;
8282
}
8383

84-
/// Returns the
85-
/// [Region](https://cloud.google.com/compute/docs/regions-zones#identifying_a_region_or_zone)
86-
/// for the current instance by checking the environment variables in
87-
/// [environmentValues].
88-
///
84+
/// Returns a metadata value for the current instance by checking the
85+
/// environment variables in [environmentVariables].
8986
/// The list is checked in order. This is useful for local development.
9087
///
9188
/// If no matching variable is found, `null` is returned.
@@ -98,10 +95,8 @@ enum MetadataValue {
9895
return null;
9996
}
10097

101-
/// Returns a [Future] that completes with the
102-
/// [Region](https://cloud.google.com/compute/docs/regions-zones#identifying_a_region_or_zone)
103-
/// for the current instance by checking
104-
/// [instance metadata](https://cloud.google.com/compute/docs/metadata/default-metadata-values#vm_instance_metadata).
98+
/// Returns a [Future] that completes with a metadata value for the current
99+
/// instance by contacting the metadata server.
105100
///
106101
/// If the metadata server cannot be contacted, a [BadConfigurationException]
107102
/// is thrown.

0 commit comments

Comments
 (0)