From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Bug in my WIP-npm-importer with blacklist Date: Sun, 25 Nov 2018 16:01:17 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQvud-0000UF-VU for guix-devel@gnu.org; Sun, 25 Nov 2018 10:01:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQvud-0000N9-Dh for guix-devel@gnu.org; Sun, 25 Nov 2018 10:01:31 -0500 Received: from mail-it1-x12c.google.com ([2607:f8b0:4864:20::12c]:38184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQvud-0000Mx-96 for guix-devel@gnu.org; Sun, 25 Nov 2018 10:01:31 -0500 Received: by mail-it1-x12c.google.com with SMTP id h65so23760034ith.3 for ; Sun, 25 Nov 2018 07:01:31 -0800 (PST) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia@riseup.net Cc: Guix-devel Hello, I had a look at that. You should not need the if there, just 'return' the test of the if. If has a form (if test conseqent alternate), alternate is optional and returns the value of the evaluated branch (consequent or alternate). This gives you a syntax error, as the mandatory consequent expression is missing. Best regards, g_bor