From 76e61793466c69bf7727ec9b4e67b679c3a77076 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Mon, 28 Feb 2022 12:33:13 +0200 Subject: [PATCH] Revert "fix: css renaming for deploy" This reverts commit 21cd94b93e5a28d5cf5bf5609dc0606c6fa1b233. --- build/css-renamer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/css-renamer.go b/build/css-renamer.go index 65ff1ca..0cf6331 100644 --- a/build/css-renamer.go +++ b/build/css-renamer.go @@ -57,16 +57,16 @@ func createCssMap() map[string]string { // Renames file by paths. func renameFile(oldPath, newPath string) { // rename the file - err := os.Rename(oldPath, newPath) + err := os.Rename(removeFirstChar(oldPath), removeFirstChar(newPath)) if err != nil { panic(err) } } // Removes first character from string. -// func removeFirstChar(s string) string { -// return s[1:] -// } +func removeFirstChar(s string) string { + return s[1:] +} // Generates a random string. func randomString(length int) string {