aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/utilities/utilities.go6
-rw-r--r--space.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/utilities/utilities.go b/pkg/utilities/utilities.go
index f2e4e6c..2ccbf63 100644
--- a/pkg/utilities/utilities.go
+++ b/pkg/utilities/utilities.go
@@ -28,16 +28,16 @@ func GetCopyright() string {
// DoesFilesExist Check if the following files exist, return files that don't exist
func DoesFilesExist(files []string) []string {
- nonExistant := []string{}
+ nonExistent := []string{}
for _, file := range files {
// https://stackoverflow.com/a/12518877
if _, err := os.Stat(file); os.IsNotExist(err) {
- nonExistant = append(nonExistant, file)
+ nonExistent = append(nonExistent, file)
}
}
- return nonExistant
+ return nonExistent
}
func TrimLastChar(s string) string {
diff --git a/space.go b/space.go
index 8f6f506..94ddeb9 100644
--- a/space.go
+++ b/space.go
@@ -54,12 +54,12 @@ func main() {
handle()
// Certificate check
- nonExistant := utilities.DoesFilesExist([]string{
+ nonExistent := utilities.DoesFilesExist([]string{
".space/.certificates/space.crt",
".space/.certificates/space.key",
})
- if len(nonExistant) != 0 {
- panic("The following files crucial to execution DO NOT exist: " + strings.Join(nonExistant, ", "))
+ if len(nonExistent) != 0 {
+ panic("The following files crucial to execution DO NOT exist: " + strings.Join(nonExistent, ", "))
}
// Start