diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java index a87bbc5b07..239dec26f1 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java @@ -1762,7 +1762,7 @@ public void storeEmptyFolder(String key, PermissionStatus permissionStatus) throw new AzureException(e); } catch (IOException e) { Throwable t = e.getCause(); - if (t != null && t instanceof StorageException) { + if (t instanceof StorageException) { StorageException se = (StorageException) t; // If we got this exception, the blob should have already been created if (!"LeaseIdMissing".equals(se.getErrorCode())) { @@ -2638,7 +2638,7 @@ public boolean delete(String key) throws IOException { return delete(key, null); } catch (IOException e) { Throwable t = e.getCause(); - if (t != null && t instanceof StorageException) { + if (t instanceof StorageException) { StorageException se = (StorageException) t; if ("LeaseIdMissing".equals(se.getErrorCode())){ SelfRenewingLease lease = null;