From ab2b5dfa8a7c8d01bf5718c72f964a2009badc0c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Sep 2020 13:34:44 +0200 Subject: [PATCH] libcontainer/cgroups: use const for templates The names of these templates overlapped with some local variables, which made reading the code somewhat confusing. Changing them to a const, given that these were not updated anywere. Signed-off-by: Sebastiaan van Stijn --- libcontainer/cgroups/fs/hugetlb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/cgroups/fs/hugetlb_test.go b/libcontainer/cgroups/fs/hugetlb_test.go index 9ddacfee6..2d17ca67e 100644 --- a/libcontainer/cgroups/fs/hugetlb_test.go +++ b/libcontainer/cgroups/fs/hugetlb_test.go @@ -18,7 +18,7 @@ const ( hugetlbFailcnt = "100\n" ) -var ( +const ( usage = "hugetlb.%s.usage_in_bytes" limit = "hugetlb.%s.limit_in_bytes" maxUsage = "hugetlb.%s.max_usage_in_bytes"