From 06b2c5bec7e246bad345fecdb12752866452e5e7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 24 Oct 2018 00:27:53 +0200 Subject: view/Renderer: code style --- src/view/Renderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/Renderer.ts b/src/view/Renderer.ts index f1b7bac..9b7bfe3 100644 --- a/src/view/Renderer.ts +++ b/src/view/Renderer.ts @@ -27,7 +27,7 @@ export default class Renderer { getAttribLocation(program: WebGLProgram, name: string): number { let ret = this.gl.getAttribLocation(program, name); if (ret < 0) - throw new Error('unable to get location of attribute \'' + name + '\''); + throw new Error("unable to get location of attribute '" + name + "'"); return ret; } @@ -35,7 +35,7 @@ export default class Renderer { getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation { let ret = this.gl.getUniformLocation(program, name); if (!ret) - throw new Error('unable to get location of uniform \'' + name + '\''); + throw new Error("unable to get location of uniform '" + name + "'"); return ret; } -- cgit v1.2.3