Skip to content

Commit

Permalink
Update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidhashemian committed Oct 25, 2023
1 parent 0ce7126 commit a99e04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psc/src/main/java/com/pinterest/psc/common/PscUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static <T> T instantiateFromClass(String fqdn, Class<T> targetClass) thro
}

public static boolean isEc2Host() {
return doesEc2MetadataExist() || isSysVendorAws() || IsAwsOsDetected();
return doesEc2MetadataExist() || isSysVendorAws() || isAwsOsDetected();
}

protected static boolean doesEc2MetadataExist() {
Expand All @@ -56,7 +56,7 @@ protected static boolean isSysVendorAws() {
}
}

protected static boolean IsAwsOsDetected() {
protected static boolean isAwsOsDetected() {
try {
return System.getProperty("os.version").contains("aws");
} catch (Exception e) {
Expand Down

0 comments on commit a99e04e

Please sign in to comment.