aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/code.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-04-29 15:25:27 +0000
committerErlang/OTP <[email protected]>2010-04-29 15:25:27 +0000
commitb328564bfe321c2df597c77fea57566ee8d00f2b (patch)
tree48d06057fad0819ebdf2811992631e6ae8ebb2c9 /lib/kernel/src/code.erl
parentc8fbe3f82050477a713b22b5d3b671718588aa79 (diff)
parent75ea6a39d1cf4bd4a67391595b90d8d90155d012 (diff)
downloadotp-b328564bfe321c2df597c77fea57566ee8d00f2b.tar.gz
otp-b328564bfe321c2df597c77fea57566ee8d00f2b.tar.bz2
otp-b328564bfe321c2df597c77fea57566ee8d00f2b.zip
Merge branch 'ks/kernel' into dev
* ks/kernel: kernel: Clean up as suggested by tidier OTP-8606 ks/kernel
Diffstat (limited to 'lib/kernel/src/code.erl')
-rw-r--r--lib/kernel/src/code.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl
index db05c1d234..affa5fc0fd 100644
--- a/lib/kernel/src/code.erl
+++ b/lib/kernel/src/code.erl
@@ -425,8 +425,8 @@ where_is_file(Path, File) when is_list(Path), is_list(File) ->
FileInfo :: #file_info{})
-> 'ok' | {'error', atom()}.
-set_primary_archive(ArchiveFile0, ArchiveBin, FileInfo)
- when is_list(ArchiveFile0), is_binary(ArchiveBin), is_record(FileInfo, file_info) ->
+set_primary_archive(ArchiveFile0, ArchiveBin, #file_info{} = FileInfo)
+ when is_list(ArchiveFile0), is_binary(ArchiveBin) ->
ArchiveFile = filename:absname(ArchiveFile0),
case call({set_primary_archive, ArchiveFile, ArchiveBin, FileInfo}) of
{ok, []} ->