From 8fbbf488ab1a8348ef44fa5022f20ebb97b282ca Mon Sep 17 00:00:00 2001 From: Don Alfons Nisnoni Date: Wed, 6 May 2020 02:07:43 +0800 Subject: [PATCH] darwin: fix `if ()` warning --- vlib/darwin/darwin.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/darwin/darwin.v b/vlib/darwin/darwin.v index 5d99ed2e6a..32c75db2d5 100644 --- a/vlib/darwin/darwin.v +++ b/vlib/darwin/darwin.v @@ -41,7 +41,7 @@ pub fn resource_path() string { mut buffer := malloc(buffer_size) buffer[0] = 0 conv_result := C.CFURLGetFileSystemRepresentation(resource_dir_url, true, buffer, buffer_size) - if(conv_result == 0) { + if conv_result == 0 { panic('CFURLGetFileSystemRepresentation failed') } result := string(buffer)