File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Vision/ComputerVision/src/main/java Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ public static void main(String[] args) {
5555 * Create a client that authorizes your Computer Vision subscription key and region.
5656 */
5757 String subscriptionKey = System.getenv("COMPUTER_VISION_SUBSCRIPTION_KEY");
58- if (subscriptionKey != "COMPUTER_VISION_SUBSCRIPTION_KEY" ) {
58+ if (subscriptionKey == null ) {
5959 System.out.println("\n\nPlease set the COMPUTER_VISION_SUBSCRIPTION_KEY environment variable." +
6060 "\n**You might need to restart your shell or IDE after setting it.**\n");
6161 System.exit(0);
6262 }
6363
6464 String endpoint = System.getenv("COMPUTER_VISION_ENDPOINT");
65- if (endpoint != "COMPUTER_VISION_ENDPOINT" ) {
65+ if (endpoint == null ) {
6666 System.out.println("\n\nPlease set the COMPUTER_VISION_ENDPOINT environment variable." +
6767 "\n**You might need to restart your shell or IDE after setting it.**\n");
6868 System.exit(0);
You can’t perform that action at this time.
0 commit comments