Removed unused block labels

This commit is contained in:
Alexandros Naskos 2020-08-14 13:27:10 +03:00
parent 4f9f317374
commit 6c4d83d73c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
};