Removed unused block labels
This commit is contained in:
parent
4f9f317374
commit
6c4d83d73c
@ -807,7 +807,7 @@ pub fn resolveTypeOfNodeInternal(
|
||||
if (import_param.tag != .StringLiteral) return null;
|
||||
|
||||
const import_str = handle.tree.tokenSlice(import_param.castTag(.StringLiteral).?.token);
|
||||
const new_handle = (store.resolveImport(handle, import_str[1 .. import_str.len - 1]) catch |err| block: {
|
||||
const new_handle = (store.resolveImport(handle, import_str[1 .. import_str.len - 1]) catch |err| {
|
||||
std.log.debug(.analysis, "Error {} while processing import {}\n", .{ err, import_str });
|
||||
return null;
|
||||
}) orelse return null;
|
||||
|
@ -574,7 +574,7 @@ fn stdUriFromLibPath(allocator: *std.mem.Allocator, zig_lib_path: ?[]const u8) !
|
||||
if (zig_lib_path) |zpath| {
|
||||
const std_path = std.fs.path.resolve(allocator, &[_][]const u8{
|
||||
zpath, "./std/std.zig",
|
||||
}) catch |err| block: {
|
||||
}) catch |err| {
|
||||
std.log.debug(.doc_store, "Failed to resolve zig std library path, error: {}\n", .{err});
|
||||
return null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user