diff options
Diffstat (limited to 'lib/os/os.go')
| -rw-r--r-- | lib/os/os.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/os/os.go b/lib/os/os.go index 0a3a0eab..3d6cbce9 100644 --- a/lib/os/os.go +++ b/lib/os/os.go @@ -1,6 +1,6 @@ -// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package os extend the standard os package to provide additional // functionalities. @@ -176,7 +176,7 @@ func IsBinary(file string) bool { content = content[:n] - for x = 0; x < len(content); x++ { + for x = range len(content) { if ascii.IsSpace(content[x]) { continue } |
