From 233e80cedad55d2c74b67b9c0f6a339d4ac15440 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 22 Dec 2022 13:50:31 +0300 Subject: [PATCH] fix(lib): some fixes --- src/tanabata/database.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/tanabata/database.c b/src/tanabata/database.c index b9ae317..c306490 100644 --- a/src/tanabata/database.c +++ b/src/tanabata/database.c @@ -50,10 +50,6 @@ int tanabata_save(Tanabata *tanabata) { } int tanabata_open(Tanabata *tanabata, const char *path) { - if (path[-1] == '/') { - fprintf(stderr, "Failed to open tanabata: output path must not end with '/'\n"); - return 1; - } struct stat st; if (stat(path, &st) != 0 || !S_ISDIR(st.st_mode)) { fprintf(stderr, "Failed to open tanabata: directory '%s' does not exist\n", path); @@ -73,10 +69,6 @@ int tanabata_open(Tanabata *tanabata, const char *path) { } int tanabata_dump(Tanabata *tanabata, const char *path) { - if (path[-1] == '/') { - fprintf(stderr, "Failed to dump tanabata: output path must not end with '/'\n"); - return 1; - } struct stat st; if (stat(path, &st) != 0 || !S_ISDIR(st.st_mode)) { fprintf(stderr, "Failed to dump tanabata: directory '%s' does not exist\n", path);