Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thu-david committed Jun 11, 2024
1 parent a15f9f6 commit b4a8a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) {
}
}

String err =
"TOS Credentials or configurations not available, cannot create TOS Under File System.";
String err = "OSS Credentials not available, cannot create OSS Under File System.";
throw Throwables.propagate(new IOException(err));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class TOSUnderFileSystemFactory implements UnderFileSystemFactory {
/**
* Constructs a new {@link TOSUnderFileSystemFactory}.
*/
public TOSUnderFileSystemFactory() {}
public TOSUnderFileSystemFactory() {
}

@Override
public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) {
Expand All @@ -44,7 +45,8 @@ public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) {
}
}

String err = "TOS Credentials not available, cannot create TOS Under File System.";
String err =
"TOS Credentials or configurations not available, cannot create TOS Under File System.";
throw Throwables.propagate(new IOException(err));
}

Expand All @@ -55,7 +57,6 @@ public boolean supportsPath(String path) {

/**
* @param conf optional configuration object for the UFS
*
* @return true if both access, secret and endpoint keys are present, false otherwise
*/
private boolean checkTOSCredentials(UnderFileSystemConfiguration conf) {
Expand Down

0 comments on commit b4a8a73

Please sign in to comment.