java/File: remove assertions to work around -Wtautological-pointer-compare

This commit is contained in:
Max Kellermann 2022-10-14 23:00:11 +02:00
parent 0626661764
commit ccc3ee663b

View File

@ -49,9 +49,6 @@ Java::File::Initialise(JNIEnv *env) noexcept
AllocatedPath
Java::File::ToAbsolutePath(JNIEnv *env, jobject _file) noexcept
{
assert(env != nullptr);
assert(_file != nullptr);
LocalObject file(env, _file);
const jstring path = GetAbsolutePath(env, file);