package gql.ratpack;

import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Path;

import ratpack.handling.Context;
import ratpack.handling.Handler;

/**
 * GraphiQL endpoint. This handler will be exposing a given GraphiQL
 * client.
 *
 * By default the handler is disable, so in order to enable it you
 * should set the {@link GraphQLModuleConfig}#activateGraphiQL to
 * true when enabling the module
 *
 * @since 0.2.0
 */
public class GraphiQLHandler implements Handler {

  @Override
  public void handle(Context ctx) throws Exception {
    GraphQLModuleConfig config = ctx.get(GraphQLModuleConfig.class);

    if (config.activateGraphiQL) {
      ctx.render(getGraphiQLFile());
    } else {
      ctx.getResponse().status(404);
      ctx.getResponse().send();
    }
  }

  private Path getGraphiQLFile() throws URISyntaxException {
    URL url = GraphiQLHandler.class.getResource("/static/index.html");
    Path path = PathUtil.toPath(url);

    return path;
  }
}

@@ -930,23 +930,19 @@
 %22);%0A
+%0A
     
-Path path =
+return
  Pat
@@ -963,26 +963,8 @@
 rl);
-%0A%0A    return path;
 %0A  %7D

Fix remove unnecesary code