aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-09-02 02:17:28 -0700
committerFuwn <[email protected]>2021-09-02 02:17:28 -0700
commitdcf1ecac7a10ecd0aea133b075438b3949c33e84 (patch)
treeb6e676512c8a36d70db006730ace71b97d66d964
parentchore(utilities): fix doc-comment (diff)
downloadspace-dcf1ecac7a10ecd0aea133b075438b3949c33e84.tar.xz
space-dcf1ecac7a10ecd0aea133b075438b3949c33e84.zip
fix(space): typos
-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