Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
DieKautz committed Feb 5, 2024
1 parent 1d8682e commit 4169948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public static AbstractPrimitiveNode getOrCreateNamed(final CompiledCodeObject me
final String functionName = ((NativeObject) values[NAMED_PRIMITIVE_FUNCTION_NAME_INDEX]).asStringUnsafe();

final PrimExternalCallNode externalCallNode = PrimExternalCallNode.load(moduleName, functionName, numReceiverAndArguments);
if ( externalCallNode != null) {
if (externalCallNode != null) {
return externalCallNode;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public static Object loadLibrary(final SqueakImageContext context, final String
final String libName = System.mapLibraryName(moduleName);
TruffleFile libPath = context.getHomePath().resolve("lib" + File.separatorChar + libName);
if (!libPath.exists()) {
// to preserve compatibility with plugins from opensmalltalk, also check without 'lib' prefix
// to preserve compatibility with plugins from opensmalltalk, also check without 'lib'
// prefix
if (libName.startsWith("lib")) {
libPath = context.getHomePath().resolve("lib" + File.separatorChar + libName.replace("lib", ""));
if (!libPath.exists()) {
Expand Down

0 comments on commit 4169948

Please sign in to comment.