mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-30 13:56:40 -04:00
Address JetBrains warnings
This commit is contained in:
+1
-2
@@ -26,9 +26,8 @@ func GetOldEntryData(realPath string, field int) ([]string, error) {
|
||||
// return the old entry data with all required lines present
|
||||
if field > 0 {
|
||||
return ensureSliceLength(decryptedEntry, field), nil
|
||||
} else {
|
||||
return decryptedEntry, nil
|
||||
}
|
||||
return decryptedEntry, nil
|
||||
}
|
||||
|
||||
// ensureSliceLength is a utility function that ensures a slice is long enough to contain the specified index.
|
||||
|
||||
Reference in New Issue
Block a user