From e942fb57336175a0d167009fe5cafc1308ab3821 Mon Sep 17 00:00:00 2001 From: Thomas Denney Date: Mon, 18 Jul 2016 10:12:00 +0100 Subject: [PATCH] Minor linting changes --- libs/microbit/control.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/microbit/control.ts b/libs/microbit/control.ts index f2d4ec1a..ecfc4e93 100644 --- a/libs/microbit/control.ts +++ b/libs/microbit/control.ts @@ -23,18 +23,17 @@ namespace control { * Display specified error code and stop the program. */ //% shim=pxtrt::panic - export function panic(code: number) { - } + export function panic(code: number) { } /** * If the condition is false, display msg on serial console, and panic with code 098. */ - export function assert(condition:boolean, msg?: string) - { + export function assert(condition: boolean, msg ?: string) { if (!condition) { console.log("ASSERTION FAILED") - if (msg != null) + if (msg != null) { console.log(msg) + } panic(98) } }